<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Deixar um determinado valor no script trazer uma informação de acordo com a informação que esta nas celulas de uma coluna - VBA &amp; Macros				            </title>
            <link>http://planilhando.com.br/community/2024-vba-macros/deixar-um-determinado-valor-no-script-trazer-uma-informacao-de-acordo-com-a-informacao-que-esta-nas-celulas-de-uma-coluna/</link>
            <description>Planilhando :: O Maior portal de Excel do Brasil</description>
            <language>pt-BR</language>
            <lastBuildDate>Mon, 13 Jul 2026 19:25:02 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Deixar um determinado valor no script trazer uma informação de acordo com a informação que esta nas celulas de uma coluna</title>
                        <link>http://planilhando.com.br/community/2024-vba-macros/deixar-um-determinado-valor-no-script-trazer-uma-informacao-de-acordo-com-a-informacao-que-esta-nas-celulas-de-uma-coluna/#post-188383</link>
                        <pubDate>Sun, 24 May 2026 22:30:58 +0000</pubDate>
                        <description><![CDATA[anexe o arquivo]]></description>
                        <content:encoded><![CDATA[<p>anexe o arquivo</p>]]></content:encoded>
						                            <category domain="http://planilhando.com.br/community/2024-vba-macros/">VBA &amp; Macros</category>                        <dc:creator>kev027</dc:creator>
                        <guid isPermaLink="true">http://planilhando.com.br/community/2024-vba-macros/deixar-um-determinado-valor-no-script-trazer-uma-informacao-de-acordo-com-a-informacao-que-esta-nas-celulas-de-uma-coluna/#post-188383</guid>
                    </item>
				                    <item>
                        <title>Deixar um determinado valor no script trazer uma informação de acordo com a informação que esta nas celulas de uma coluna</title>
                        <link>http://planilhando.com.br/community/2024-vba-macros/deixar-um-determinado-valor-no-script-trazer-uma-informacao-de-acordo-com-a-informacao-que-esta-nas-celulas-de-uma-coluna/#post-188382</link>
                        <pubDate>Sun, 24 May 2026 15:32:15 +0000</pubDate>
                        <description><![CDATA[Bom dia,
 
Pessoal preciso de uma ajuda se possivel.
 
Tenho a macro sub parte2 e preciso deixar o script abaixo que tem o valor 9 em que esse 9 atualize de acordo com a informação da co...]]></description>
                        <content:encoded><![CDATA[<p>Bom dia,</p>
<p> </p>
<p>Pessoal preciso de uma ajuda se possivel.</p>
<p> </p>
<p>Tenho a macro sub parte2 e preciso deixar o script abaixo que tem o valor 9 em que esse 9 atualize de acordo com a informação da coluna E  a partir da linha 3.</p>
<p> </p>
<p>Cada linha que vai ser percorrida pode ser um numero diferente e gostaria de deixar essa informação automática</p>
<p>session.findById("wnd/usr/cntlC_CONTAINER/shellcont/shell/shellcont/shell/shellcont/shell/shellcont/shell").selectItem (" 9"), "&amp;Hierarchy"<br />session.findById("wnd/usr/cntlC_CONTAINER/shellcont/shell/shellcont/shell/shellcont/shell/shellcont/shell").ensureVisibleHorizontalItem " 9", "&amp;Hierarchy"<br />session.findById("wnd/usr/cntlC_CONTAINER/shellcont/shell/shellcont/shell/shellcont/shell/shellcont/shell").clickLink " 9", "&amp;Hierarchy"</p>
<p> </p>
<p> </p>
<p>Sub Parte2()<br /><br /><br />If Not IsObject(Appl) Then<br />Set SapGuiAuto = GetObject("SAPGUI")<br />Set Appl = SapGuiAuto.GetScriptingEngine<br />End If<br />If Not IsObject(Connection) Then<br />Set Connection = Appl.Children(0)<br />End If<br />If Not IsObject(session) Then<br />Set session = Connection.Children(0)<br />End If<br />If IsObject(WScript) Then<br />WScript.ConnectObject session, "on"<br />WScript.ConnectObject Appl, "on"<br />End If<br /><br /><br /><br /><br />Windows("Consultar Status Nota Fiscal.xlsm").Activate<br />Sheets("Planilha3").Select<br /><br /><br /><br /><br />session.findById("wnd").maximize<br />session.findById("wnd/tbar/okcd").Text = "/NEDOC_COCKPIT "<br />session.findById("wnd").sendVKey 0<br /><br /><br /><br /><br />session.findById("wnd/usr/cntlC_CONTAINER/shellcont/shell/shellcont/shell/shellcont/shell/shellcont/shell").selectItem (" 9"), "&amp;Hierarchy"<br />session.findById("wnd/usr/cntlC_CONTAINER/shellcont/shell/shellcont/shell/shellcont/shell/shellcont/shell").ensureVisibleHorizontalItem " 9", "&amp;Hierarchy"<br />session.findById("wnd/usr/cntlC_CONTAINER/shellcont/shell/shellcont/shell/shellcont/shell/shellcont/shell").clickLink " 9", "&amp;Hierarchy"<br /><br /><br /><br />session.findById("wnd/usr/cntlC_CONTAINER/shellcont/shell/shellcont/shell/shellcont/shell/shellcont/shell").sapEvent "Frame0", "sapbu_cl= &amp;sapse_cl= &amp;sapin_cl=A1F1I1NAME:LAST_DAYSsapENTER&amp;A1F1I1=120", "sapevent:A1F1"<br />session.findById("wnd/usr/btnBUTTON_1").press<br />session.findById("wnd/usr/cntlC_CONTAINER/shellcont/shell/shellcont/shell/shellcont/shell").setCurrentCell -1, "NFENUM"<br />session.findById("wnd/usr/cntlC_CONTAINER/shellcont/shell/shellcont/shell/shellcont/shell").selectColumn "NFENUM"<br />session.findById("wnd/usr/cntlC_CONTAINER/shellcont/shell/shellcont/shell/shellcont/shell").pressToolbarButton "&amp;MB_FILTER"<br />session.findById("wnd/usr/ssub%_SUBSCREEN_FREESEL:SAPLSSEL:1105/ctxt%%DYN001-LOW").Text = "000031945"<br />session.findById("wnd/usr/ssub%_SUBSCREEN_FREESEL:SAPLSSEL:1105/ctxt%%DYN001-LOW").caretPosition = 9<br />session.findById("wnd").sendVKey 0<br />session.findById("wnd/usr/cntlC_CONTAINER/shellcont/shell/shellcont/shell/shellcont/shell").currentCellColumn = ""<br />session.findById("wnd/usr/cntlC_CONTAINER/shellcont/shell/shellcont/shell/shellcont/shell").selectedRows = "0"<br />session.findById("wnd/usr/cntlC_CONTAINER/shellcont/shell/shellcont/shell/shellcont/shell").pressContextButton "GOTO"<br />session.findById("wnd/usr/cntlC_CONTAINER/shellcont/shell/shellcont/shell/shellcont/shell").selectMenuItem "DISPLAY_SOURCE"</p>]]></content:encoded>
						                            <category domain="http://planilhando.com.br/community/2024-vba-macros/">VBA &amp; Macros</category>                        <dc:creator>cmbruno</dc:creator>
                        <guid isPermaLink="true">http://planilhando.com.br/community/2024-vba-macros/deixar-um-determinado-valor-no-script-trazer-uma-informacao-de-acordo-com-a-informacao-que-esta-nas-celulas-de-uma-coluna/#post-188382</guid>
                    </item>
							        </channel>
        </rss>
		