<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: How to scroll GUI table in VB in Additional Q&amp;A</title>
    <link>https://community.sap.com/t5/additional-q-a/how-to-scroll-gui-table-in-vb/qaa-p/9298412#M101915</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;'-Begin-----------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; '-Directives----------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Option Explicit&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; '-Variables-----------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim WshShell&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; '-Main----------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set WshShell = CreateObject("WScript.Shell")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If IsObject(WshShell) Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox "It works"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set WshShell = Nothing&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox "Can't initialize WScript.Shell"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;'-End-------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tell us the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Nov 2013 09:58:27 GMT</pubDate>
    <dc:creator>Stefan-Schnell</dc:creator>
    <dc:date>2013-11-22T09:58:27Z</dc:date>
    <item>
      <title>How to scroll GUI table in VB</title>
      <link>https://community.sap.com/t5/additional-q-a/how-to-scroll-gui-table-in-vb/qaq-p/9298394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having trouble with a GUI table automation through VB (GuiTableControl.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the best way to run though each row in a table - if i want to extract all values in a table not &lt;/P&gt;&lt;P&gt;just those displayed on the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg 4 rows are display on the screen. But if the table contain more entries, how do I move the &lt;/P&gt;&lt;P&gt;table to the fifth row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; oidtable.verticalScrollbar.Position = 4 ' fifth row..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sometime works and other times crashes..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there a better way to move through all items one by one...not just the ones displayed..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The rows collection , contains rows on the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This can get rows but again it only work for the four rows displayed on the screen rows (0-3)&lt;/P&gt;&lt;P&gt; oidtable.rows.item(3).item(0).text&lt;/P&gt;&lt;P&gt;how do i get the fifths row in a table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mike.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 02:33:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/how-to-scroll-gui-table-in-vb/qaq-p/9298394</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-01T02:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to scroll GUI table in VB</title>
      <link>https://community.sap.com/t5/additional-q-a/how-to-scroll-gui-table-in-vb/qaa-p/9298395#M101898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had the same problems and solved it in the same way as you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The example is here: &lt;A _jive_internal="true" href="https://answers.sap.com/docs/DOC-26251"&gt;http://scn.sap.com/docs/DOC-26251&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use this code to actualize the grid:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;'-Each 32 lines actualize the grid------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; If i Mod 32 = 0 Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; table.SetCurrentCell i, CStr(Columns(0))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; End If &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 11:08:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/how-to-scroll-gui-table-in-vb/qaa-p/9298395#M101898</guid>
      <dc:creator>Stefan-Schnell</dc:creator>
      <dc:date>2013-03-01T11:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to scroll GUI table in VB</title>
      <link>https://community.sap.com/t5/additional-q-a/how-to-scroll-gui-table-in-vb/qaa-p/9298396#M101899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="text-align: left; background-color: #ffffff; text-indent: 0px; color: #333333;"&gt;Thanks I was asking about , &lt;/P&gt;&lt;P style="text-align: left; background-color: #ffffff; text-indent: 0px; color: #333333;"&gt;a&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff; font-family: inherit;"&gt;&lt;EM&gt;GUItablecontrol&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;not a&lt;/EM&gt;&lt;/STRONG&gt; GuiGridView. The GuiGridView control has method&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-family: inherit; color: #333333; font-size: 12px;"&gt;SetCurrentCell&amp;nbsp;&amp;nbsp; &lt;EM&gt;&lt;SPAN style="background-color: #ffffff; font-family: inherit; color: #333333; font-size: 12px;"&gt;GUItablecontol&lt;/SPAN&gt; dosen't have this method&lt;/EM&gt;. ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left; background-color: #ffffff; text-indent: 0px; color: #333333;"&gt;eg. There are numerous such GUItablecontrols in the 'bp' transaction (eg the id 'tab') . There are GUItablecontrols there which only display a few rows&amp;nbsp; , we need to go through all rows to see if a value is already there before inserting a new record - but how? You seem to only be able to get access to &lt;/P&gt;&lt;P style="text-align: left; background-color: #ffffff; text-indent: 0px; color: #333333;"&gt;the ones displayed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: inherit; color: #333333; font-size: 12px;"&gt;also see this post similar question&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: inherit; color: #333333; font-size: 12px;"&gt;&lt;A _jive_internal="true" href="https://answers.sap.com/message/13888580#13888580"&gt;http://scn.sap.com/message/13888580#13888580&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left; background-color: #ffffff; text-indent: 0px; color: #333333;"&gt;question not answered?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left; background-color: #ffffff; text-indent: 0px; color: #333333;"&gt;Thanks for trying anyway...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2013 03:35:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/how-to-scroll-gui-table-in-vb/qaa-p/9298396#M101899</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-04T03:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to scroll GUI table in VB</title>
      <link>https://community.sap.com/t5/additional-q-a/how-to-scroll-gui-table-in-vb/qaa-p/9298397#M101900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello mic,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry for this misunderstanding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope the following snippet could help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Set WshShell = WScript.CreateObject("WScript.Shell")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;'Get the number of rows in the table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;i = session.findById("wnd[0]/usr/tbl/TEST").RowCount&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;'Go to each row and read the field 0,0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;For j = 1 To i&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; 'With Shift+Arrow Down you can scroll through the table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; WshShell.AppActivate "Title of the SAP Window"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; WshShell.SendKeys "+{DOWN}"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; WScript.Sleep 125&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; 'Read the content of the field 0,0, in my case a key&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; fld = session.findById("wnd[0]/usr/tbl/TEST-FIELD[0,0]").Text&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; 'If the content of field is identical to the line before,&lt;BR /&gt;&amp;nbsp; 'we reach the end of the entries&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; If fld = vfld Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox CStr(j) &amp;amp; " entries"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exit For&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; End If&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; vfld = fld&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Next&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2013 16:42:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/how-to-scroll-gui-table-in-vb/qaa-p/9298397#M101900</guid>
      <dc:creator>Stefan-Schnell</dc:creator>
      <dc:date>2013-03-04T16:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to scroll GUI table in VB</title>
      <link>https://community.sap.com/t5/additional-q-a/how-to-scroll-gui-table-in-vb/qaa-p/9298398#M101901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;A&gt;&lt;/A&gt;I couldn' t&amp;nbsp; get the above code to work in VBA (excel) but it does work as a stand alone script (vbs).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can get it to work in vba (excel) that would be great. !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to get WshShell to work in vba&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 'set a reference to Windows Script Host Object Model&lt;/P&gt;&lt;P&gt;Dim WshShell As New IWshRuntimeLibrary.WshShell&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WScript.Sleep 125 ' i could get to work in VBA..&lt;/P&gt;&lt;P&gt;however this code - is a sleep alternative..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare Sub Sleep Lib "kernel32" _&lt;BR /&gt;(ByVal dwMilliseconds As Long)&lt;BR /&gt;'Use the following syntax to call the Sleep function:&lt;/P&gt;&lt;P&gt;Sub Sleeps(m As Long)&lt;BR /&gt;Sleep m End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you can get GUITableControlit to work in vba that would be good..?&lt;/P&gt;&lt;P&gt;thanks again..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2013 03:40:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/how-to-scroll-gui-table-in-vb/qaa-p/9298398#M101901</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-05T03:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to scroll GUI table in VB</title>
      <link>https://community.sap.com/t5/additional-q-a/how-to-scroll-gui-table-in-vb/qaa-p/9298399#M101902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello mic,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this, hope it works in your case. I check it with Excel 2007 and I works fine on my system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Option Explicit&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Private Declare Function SetForegroundWindow Lib "user32.dll" (ByVal hWnd As Long) As Long&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Sub Test()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; Dim wsh As WshShell&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; Dim gui As Object&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; Dim app As GuiApplication&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; Dim con As GuiConnection&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; Dim ses As GuiSession&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; Dim i, j As Long&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; Dim fld, vfld As String&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; Dim hWnd As Long&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; Set gui = GetObject("SAPGUI")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; Set app = gui.GetScriptingEngine()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; Set wsh = CreateObject("WScript.Shell")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; If IsObject(app) And IsObject(wsh) Then&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set con = app.Connections(0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set ses = con.Sessions(0)&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If IsObject(con) And IsObject(ses) Then&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i = ses.FindById("wnd[0]/usr/tbl/TABLE").RowCount&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hWnd = ses.ActiveWindow.Handle&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For j = 1 To i&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SetForegroundWindow hWnd&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wsh.SendKeys "+{DOWN}"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sleep 250&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fld = ses.FindById("wnd[0]/usr/tbl/TABLE[0,0]").Text&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If fld = vfld Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox CStr(j) &amp;amp; " entries"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exit For&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vfld = fld&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set ses = Nothing&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set con = Nothing&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set app = Nothing&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; End If&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;End Sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2013 13:57:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/how-to-scroll-gui-table-in-vb/qaa-p/9298399#M101902</guid>
      <dc:creator>Stefan-Schnell</dc:creator>
      <dc:date>2013-03-05T13:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to scroll GUI table in VB</title>
      <link>https://community.sap.com/t5/additional-q-a/how-to-scroll-gui-table-in-vb/qaa-p/9298400#M101903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes this solution worked ! Well done you are definitely a automation guru - thanks for your help...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 23:47:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/how-to-scroll-gui-table-in-vb/qaa-p/9298400#M101903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-07T23:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to scroll GUI table in VB</title>
      <link>https://community.sap.com/t5/additional-q-a/how-to-scroll-gui-table-in-vb/qaa-p/9298401#M101904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I recently faced with a similar situation with the GuiTableControl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A colleague wanted to extract data from a table which only have 2 visible rows whereas there are 2000+ rows in total. My first thought, like yours, was to use VerticalScrollBar.Position to scroll down the table, but the script crashes after it completed the 1st loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After trial and error with different strategies, my VBA script finally works. The key is to re-declare the GuiTableControl object after each scroll. It seems that whenever the VerticalScrollBar position changes, the table is re-loaded is SAP and all the cells are reset in reference to the VerticalScrollBar position. This is probably why SAP throw an exception when trying to get the value from the table after the 1st loop - the GuiTableControl declared initially no longer exist in memory after the scroll.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, my solution steps are basically as follow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Declare the GuiApplication, GuiConnection and GuiSession objects as usual for initialization.&lt;/LI&gt;&lt;LI&gt;Declare the GuiTableControl object e.g. sapTable = session.findbyid("theTableID"), then get the sapTable.VisibleRowCount and sapTable.RowCount.&lt;/LI&gt;&lt;LI&gt;Set the looping parameters to start from whichever rows but maximum loops should be no more than RowCount / VisibleRowCount.&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt;"&gt;Get the data using sapTable.GetCell(0,0).Text to maximum sapTable.GetCell( VisibleRowCount - 1, Columns.Count - 1).Text&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Set sapTableVerticalScrollBar.Position = sapTable.VerticalScrollBar.Position + sapTable.VisibleRowCount. &lt;/LI&gt;&lt;LI&gt;Re-declare the sapTable object using the same "theTableID" in step 2 above.&lt;/LI&gt;&lt;LI&gt;Loop step 4, 5 and 6 until finish.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way, we eliminate the need to use VBS for Sendkey and only needs VBA to do the job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sayuti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Nov 2013 02:58:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/how-to-scroll-gui-table-in-vb/qaa-p/9298401#M101904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-17T02:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to scroll GUI table in VB</title>
      <link>https://community.sap.com/t5/additional-q-a/how-to-scroll-gui-table-in-vb/qaa-p/9298402#M101905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sayuti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for sharing this interesting information&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/1949/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Nov 2013 08:45:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/how-to-scroll-gui-table-in-vb/qaa-p/9298402#M101905</guid>
      <dc:creator>Stefan-Schnell</dc:creator>
      <dc:date>2013-11-17T08:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to scroll GUI table in VB</title>
      <link>https://community.sap.com/t5/additional-q-a/how-to-scroll-gui-table-in-vb/qaa-p/9298403#M101906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to write a vbscript code to search for entries in table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/326114" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I copied your code from previous replies but it's not working.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Not&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;IsObject&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(application&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;   &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Set&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; SapGuiAuto&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;  = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;GetObject&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;"SAPGUI"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;   &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Set&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; application&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; = SapGuiAuto.GetScriptingEngine&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;End&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;If&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Not&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;IsObject&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(connection&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;   &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Set&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; connection&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; = application.Children&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;End&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;If&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Not&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;IsObject&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(session&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;   &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Set&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; session&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;    = connection.Children&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;End&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;If&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;IsObject&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;WScript&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;   WScript.ConnectObject&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; session&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;,     &lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;"on"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;   WScript.ConnectObject&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; application&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;"on"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;End&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;If&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; WshShell&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;WScript&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;Set&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; WshShell&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; = WScript.CreateObject&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;"WScript.Shell"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;'Get the number of rows in the table&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;i&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; = session.findById&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;"wnd[0]/usr/tblSAPLQPAATC_PLMK"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;).RowCount&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;'Go to each row and read the field 0,0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;For&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; j&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;To&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; i&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;  &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;'With Shift+Arrow Down you can scroll through the table&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;  WshShell.AppActivate&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;"Title of the SAP Window"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;  WshShell.SendKeys&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;"+{DOWN}"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;  WScript.Sleep&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;125&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;  &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;'Read the content of the field 0,0, in my case a key&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;  fld&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; = session.findById&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;"wnd[0]/usr/tblSAPLQPAATC_PLMK/txtPLMKB-KURZTEXT[0,0]"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;).Text&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;  &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;'If the content of field is identical to the line before,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;  &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;'we reach the end of the entries&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;  &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; fld&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; = vfld&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;MsgBox&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;CStr&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(j&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;) &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;" entries"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Exit&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;For&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;  &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;End&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;If&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;  vfld&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; = fld&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;Next&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly please help me in right direction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2013 21:24:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/how-to-scroll-gui-table-in-vb/qaa-p/9298403#M101906</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-18T21:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to scroll GUI table in VB</title>
      <link>https://community.sap.com/t5/additional-q-a/how-to-scroll-gui-table-in-vb/qaa-p/9298404#M101907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tell me a little bit more about your transaction code, your program and the screen do you use. I don't know QM "Inspection characteristics". I see only the table name PLMK (Prüfplanmerkmale) and the field Kurztext (Kurztext zum Prüfmerkmal).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At first you must switch in the line&lt;/P&gt;&lt;P&gt;WshShell.AppActivate&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;"Title of the SAP Window"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;the string argument with your individual window title.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The example code above compares two lines and you want to search for entries in a table. That are different requirements. Think about the different approaches.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 07:02:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/how-to-scroll-gui-table-in-vb/qaa-p/9298404#M101907</guid>
      <dc:creator>Stefan-Schnell</dc:creator>
      <dc:date>2013-11-19T07:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to scroll GUI table in VB</title>
      <link>https://community.sap.com/t5/additional-q-a/how-to-scroll-gui-table-in-vb/qaa-p/9298405#M101908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a code that reads all data from a GuiTableControl into a CSV File. Maybe this helps you to learn how to look through a Table like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: green;"&gt;'Variablendeklaration&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; TableID &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;String&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; oTableControl &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; SAPFEWSELib.GuiTableControl&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; CSV &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Object&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; iRow &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Long&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; Rows &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Long&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; vRows &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Integer&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; iCol &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Integer&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; Cols &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Integer&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; ScrollBarPosition_o &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Long&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: green;"&gt;'Table ID initialisieren&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt;TableID &lt;STRONG&gt;=&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: gray;"&gt;"hier die ID eingeben"&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: green;"&gt;'Das GuiTableControl in die Objektvariable "oTableControl" initialisieren&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Set&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; oTableControl &lt;STRONG&gt;=&lt;/STRONG&gt; Session.FindById&lt;STRONG&gt;(&lt;/STRONG&gt;TableID&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: green;"&gt;'Tabellengröße ermitteln&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt;Rows &lt;STRONG&gt;=&lt;/STRONG&gt; oTableControl.RowCount &lt;STRONG&gt;-&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="color: red; font-size: 9.5pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt;Cols &lt;STRONG&gt;=&lt;/STRONG&gt; oTableControl.ColumnCount &lt;STRONG&gt;-&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="color: red; font-size: 9.5pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt;vRows &lt;STRONG&gt;=&lt;/STRONG&gt; oTableControl.VisibleRowCount&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: green;"&gt;'Initialisierung des Objekts zur Erstellung der CSV-Datei&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Set&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; CSV &lt;STRONG&gt;=&lt;/STRONG&gt; _&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CreateObject&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: gray;"&gt;"Scripting.FileSystemObject"&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9.5pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;).&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; _&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CreateTextFile&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: gray;"&gt;"C:\test.csv"&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9.5pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;True&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9.5pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: green;"&gt;'Alle Spaltennamen in die erste Zeile der CSV-Datei schreiben&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;For&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; iCol &lt;STRONG&gt;=&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="color: red; font-size: 9.5pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;To&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; Cols&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CSV.Write oTableControl.Columns.Item&lt;STRONG&gt;(&lt;/STRONG&gt;iCol&lt;STRONG&gt;).&lt;/STRONG&gt;Title &lt;STRONG&gt;&amp;amp;&lt;/STRONG&gt; _&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IIf&lt;STRONG&gt;(&lt;/STRONG&gt;iCol &lt;STRONG&gt;&amp;lt;&lt;/STRONG&gt; Cols&lt;STRONG&gt;,&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: gray;"&gt;";"&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9.5pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: gray;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9.5pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Next&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: green;"&gt;'Daten in die folgenden Zeilen bertragen&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; Value &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;String&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Do&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;For&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; iRow &lt;STRONG&gt;=&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="color: red; font-size: 9.5pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;To&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; vRows&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Not&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; iRow &lt;STRONG&gt;=&lt;/STRONG&gt; vRows &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Then&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; oCSV.WriteLine &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: gray;"&gt;""&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;For&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; iCol &lt;STRONG&gt;=&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="color: red; font-size: 9.5pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;To&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; Cols&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Err.Clear&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value &lt;STRONG&gt;=&lt;/STRONG&gt; oTableControl.GetCell&lt;STRONG&gt;(&lt;/STRONG&gt;iRow&lt;STRONG&gt;,&lt;/STRONG&gt; iCol&lt;STRONG&gt;).&lt;/STRONG&gt;Text&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="color: #0000ff; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; Err.Number &lt;STRONG&gt;=&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="color: red; font-size: 9.5pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; IsNumeric&lt;STRONG&gt;(&lt;/STRONG&gt;Value&lt;STRONG&gt;)&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;And&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Not&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; isSAPDate&lt;STRONG&gt;(&lt;/STRONG&gt;Value&lt;STRONG&gt;)&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value &lt;STRONG&gt;=&lt;/STRONG&gt; IIf&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;CDbl&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9.5pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt;Value&lt;STRONG&gt;)&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Mod&lt;/SPAN&gt; &lt;SPAN style="color: red; font-size: 9.5pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; &lt;STRONG&gt;=&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: red;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt;,&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; _&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;CLng&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9.5pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt;Value&lt;STRONG&gt;),&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;CDbl&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9.5pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt;Value&lt;STRONG&gt;))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="color: #0000ff; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;If&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; oCSV.Write Value &lt;STRONG&gt;&amp;amp;&lt;/STRONG&gt; IIf&lt;STRONG&gt;(&lt;/STRONG&gt;iCol &lt;STRONG&gt;&amp;lt;&lt;/STRONG&gt; Cols&lt;STRONG&gt;,&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: gray;"&gt;";"&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9.5pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: gray;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9.5pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;If&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="color: #0000ff; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Next&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;&lt;SPAN style="color: #0000ff; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Next&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="color: #0000ff; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: green;"&gt;'Scrollbar weitersetzen und alten Wert speichern&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN style="color: #0000ff; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;ScrollBarPosition_o &lt;STRONG&gt;=&lt;/STRONG&gt; oTableControl.VerticalScrollbar.Position&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN style="color: #0000ff; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;oTableControl.VerticalScrollbar.Position &lt;STRONG&gt;=&lt;/STRONG&gt; _&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; &lt;SPAN style="color: #0000ff; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #0000ff; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;oTableControl.VerticalScrollbar.Position &lt;STRONG&gt;+&lt;/STRONG&gt; vRows&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="color: #0000ff; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: green;"&gt;'oTableControl neu initialisieren&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; oTableControl &lt;STRONG&gt;=&lt;/STRONG&gt; Session.FindById&lt;STRONG&gt;(&lt;/STRONG&gt;TableID&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Loop&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;While&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; ScrollBarPosition_o &lt;STRONG&gt;&amp;lt;&lt;/STRONG&gt; oTableControl.VerticalScrollbar.Position&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt;CSV.Close&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards from Regensburg,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 07:47:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/how-to-scroll-gui-table-in-vb/qaa-p/9298405#M101908</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-19T07:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to scroll GUI table in VB</title>
      <link>https://community.sap.com/t5/additional-q-a/how-to-scroll-gui-table-in-vb/qaa-p/9298406#M101909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Maximilian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is basically how my steps work as describe earlier. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1949/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for putting in the Columns headers in the codes. I forgot to mention it in my earlier reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of using CSV, I record the data directly in my Worksheet using Activecell and Offset. The looping technique is For...Next instead of the Do...While.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just curious, why do you use Err.Clear in your codes? Shouldn't there be On Error Resume Next at the beginning as well?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sayuti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 09:32:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/how-to-scroll-gui-table-in-vb/qaa-p/9298406#M101909</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-19T09:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to scroll GUI table in VB</title>
      <link>https://community.sap.com/t5/additional-q-a/how-to-scroll-gui-table-in-vb/qaa-p/9298407#M101910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use the Exceptionhandling because sometimes some Cells can kind of be "locked". If Value = GetCell().Text is used on one of there, an exception will be thrown and Value will contain the "old" Value from the last working Cell.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course you need to add On Error Resume Next in the beginning. Its not necessary to Use Err.Clear and If Err.Number = 0, you can also set Value to "" after writeing it to the CSV File.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: green;"&gt;'Exception Handling&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;On Error Resume Next&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: green;"&gt;'Variablendeklaration&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; TableID &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;String&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; oTableControl &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; SAPFEWSELib.GuiTableControl&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; CSV &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Object&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; iRow &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Long&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; Rows &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Long&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; vRows &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Integer&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; iCol &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Integer&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; Cols &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Integer&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; ScrollBarPosition_o &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Long&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: green;"&gt;'Table ID initialisieren&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt;TableID &lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: gray;"&gt;"hier die ID eingeben"&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: green;"&gt;'Das GuiTableControl in die Objektvariable "oTableControl" initialisieren&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Set&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; oTableControl &lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/SPAN&gt; Session.FindById&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;TableID&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: green;"&gt;'Tabellengröße ermitteln&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt;Rows &lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/SPAN&gt; oTableControl.RowCount &lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;-&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="color: red; font-size: 9.5pt; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt;Cols &lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/SPAN&gt; oTableControl.ColumnCount &lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;-&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="color: red; font-size: 9.5pt; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt;vRows &lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/SPAN&gt; oTableControl.VisibleRowCount&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: green;"&gt;'Initialisierung des Objekts zur Erstellung der CSV-Datei&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Set&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; CSV &lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/SPAN&gt; _&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CreateObject&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: gray;"&gt;"Scripting.FileSystemObject"&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9.5pt; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;).&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; _&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CreateTextFile&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: gray;"&gt;"C:\test.csv"&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9.5pt; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;True&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9.5pt; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: green;"&gt;'Alle Spaltennamen in die erste Zeile der CSV-Datei schreiben&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;For&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; iCol &lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="color: red; font-size: 9.5pt; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;To&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; Cols&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CSV.Write oTableControl.Columns.Item&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;iCol&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;).&lt;/STRONG&gt;&lt;/SPAN&gt;Title &lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;&amp;amp;&lt;/STRONG&gt;&lt;/SPAN&gt; _&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IIf&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;iCol &lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;&amp;lt;&lt;/STRONG&gt;&lt;/SPAN&gt; Cols&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: gray;"&gt;";"&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9.5pt; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: gray;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9.5pt; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Next&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: green;"&gt;'Daten in die folgenden Zeilen bertragen&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; Value &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;String&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Do&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;For&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; iRow &lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="color: red; font-size: 9.5pt; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;To&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; vRows&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Not&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; iRow &lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/SPAN&gt; vRows &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Then&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; oCSV.WriteLine &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: gray;"&gt;""&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;For&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; iCol &lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="color: red; font-size: 9.5pt; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;To&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; Cols&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'courier new', courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value &lt;SPAN style="font-style: inherit;"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/SPAN&gt; oTableControl.GetCell&lt;SPAN style="font-style: inherit;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;iRow&lt;SPAN style="font-style: inherit;"&gt;&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/SPAN&gt; iCol&lt;SPAN style="font-style: inherit;"&gt;&lt;STRONG&gt;).&lt;/STRONG&gt;&lt;/SPAN&gt;Text&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; color: blue;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; color: black;"&gt; IsNumeric&lt;SPAN style="font-style: inherit;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;Value&lt;SPAN style="font-style: inherit;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; color: blue;"&gt;And&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; color: blue;"&gt;Not&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; color: black;"&gt; isSAPDate&lt;SPAN style="font-style: inherit;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;Value&lt;SPAN style="font-style: inherit;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; color: blue;"&gt;Then&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value &lt;SPAN style="font-style: inherit;"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/SPAN&gt; IIf&lt;SPAN style="font-style: inherit;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; color: blue;"&gt;CDbl&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9.5pt; font-style: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; color: black;"&gt;Value&lt;SPAN style="font-style: inherit;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; color: blue;"&gt;Mod&lt;/SPAN&gt; &lt;SPAN style="color: red; font-size: 9.5pt; font-style: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; color: black;"&gt; &lt;SPAN style="font-style: inherit;"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="font-style: inherit;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; color: red;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; color: black;"&gt;,&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; color: black;"&gt; _&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; color: blue;"&gt;CLng&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9.5pt; font-style: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; color: black;"&gt;Value&lt;SPAN style="font-style: inherit;"&gt;&lt;STRONG&gt;),&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; color: blue;"&gt;CDbl&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9.5pt; font-style: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; color: black;"&gt;Value&lt;SPAN style="font-style: inherit;"&gt;&lt;STRONG&gt;))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; oCSV.Write Value &lt;SPAN style="font-style: inherit;"&gt;&lt;STRONG&gt;&amp;amp;&lt;/STRONG&gt;&lt;/SPAN&gt; IIf&lt;SPAN style="font-style: inherit;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;iCol &lt;SPAN style="font-style: inherit;"&gt;&lt;STRONG&gt;&amp;lt;&lt;/STRONG&gt;&lt;/SPAN&gt; Cols&lt;SPAN style="font-style: inherit;"&gt;&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; color: gray;"&gt;";"&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9.5pt; font-style: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; color: gray;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9.5pt; font-style: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; color: blue;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; color: blue;"&gt;If&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="color: blue; font-size: 9.5pt; font-style: inherit; font-family: 'courier new', courier; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; background-color: #ffffff;"&gt;Value &lt;/SPAN&gt;&lt;SPAN style="font-style: inherit;"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; background-color: #ffffff;"&gt;&amp;nbsp; ""&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'courier new', courier; color: blue;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Next&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'Courier New'; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: green;"&gt;'Scrollbar weitersetzen und alten Wert speichern&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;ScrollBarPosition_o &lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/SPAN&gt; oTableControl.VerticalScrollbar.Position&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;oTableControl.VerticalScrollbar.Position &lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/SPAN&gt; _&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: #0000ff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;oTableControl.VerticalScrollbar.Position &lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;+&lt;/STRONG&gt;&lt;/SPAN&gt; vRows&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'Courier New'; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: green;"&gt;'oTableControl neu initialisieren&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; oTableControl &lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/SPAN&gt; Session.FindById&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;TableID&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;Loop&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: blue;"&gt;While&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt; ScrollBarPosition_o &lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;&amp;lt;&lt;/STRONG&gt;&lt;/SPAN&gt;oTableControl.VerticalScrollbar.Position&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; font-family: 'Courier New'; color: black;"&gt;CSV.Close&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 12:28:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/how-to-scroll-gui-table-in-vb/qaa-p/9298407#M101910</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-19T12:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to scroll GUI table in VB</title>
      <link>https://community.sap.com/t5/additional-q-a/how-to-scroll-gui-table-in-vb/qaa-p/9298408#M101911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I forgot to include more information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program name: SAPLQPAA&lt;/P&gt;&lt;P&gt;Dynpro: 0150&lt;/P&gt;&lt;P&gt;Screen title : Display Inspection Plan: Characteristic Overview&lt;/P&gt;&lt;P&gt;Transaction code: QP03&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this transaction we list all the test (insp. character) that needs to be recorded to post approve OR reject (usage decision)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we have more than 200 tests listed in the inspection plans and searching for exact tests is &lt;STRONG&gt;manual work.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1) SAP in built search icon is disabled in this transaction (QP03).&lt;/P&gt;&lt;P&gt;2) its table and &lt;STRONG&gt;not grid view&lt;/STRONG&gt;. I came to know about gridview relevant vbscript codes from you in this form and using them activley ..thanks to you. But how do we put vbscript code to search lets say inspection character from table view in QP03.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really appreciate you taking time to answer my stupid questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 15:05:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/how-to-scroll-gui-table-in-vb/qaa-p/9298408#M101911</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-19T15:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to scroll GUI table in VB</title>
      <link>https://community.sap.com/t5/additional-q-a/how-to-scroll-gui-table-in-vb/qaa-p/9298409#M101912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Maxmilian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can this code be converted to vbscript? I already have sevral vbscripts that interact with Guixt and input assistant and would like vbscript over VBA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time and efforts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 15:09:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/how-to-scroll-gui-table-in-vb/qaa-p/9298409#M101912</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-20T15:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to scroll GUI table in VB</title>
      <link>https://community.sap.com/t5/additional-q-a/how-to-scroll-gui-table-in-vb/qaa-p/9298410#M101913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry but TAC QP03 doesn't exists on my test system. So I take TAC OAC0, it is also a table too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/328149" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To search one entry the following code, based on the code discussed here in this thread, works. I am searching for the entry CUSTSTRUCT:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-face: courier;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;'-Begin-----------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; '-Directives----------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Option Explicit&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; '-Variables-----------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim SapGuiAuto, application, connection, session&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim WshShell, i, j, fldtxt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; '-Main----------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Not IsObject(application) Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set SapGuiAuto = GetObject("SAPGUI")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set application = SapGuiAuto.GetScriptingEngine&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Not IsObject(connection) Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set connection = application.Children(0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Not IsObject(session) Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set session = connection.Children(0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set WshShell = CreateObject("WScript.Shell")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; i = session.findById("wnd[0]/usr/tblSAPLSCMS_CREPC_SREP").RowCount&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; For j = 1 To i&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fldtxt = session.findById("wnd[0]/usr/tblSAPLSCMS_CREPC_SREP/txtI_SREP-CREP_ID[0,0]").Text&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If fldtxt = "CUSTSTRUCT" Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exit For&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WshShell.AppActivate _&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Display Content Repositories: Overview"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WshShell.SendKeys "+{DOWN}"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox fldtxt &amp;amp; " found in line " &amp;amp; CStr(j)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;'-End-------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;This is the result:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/328150" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Hope it helps. Let us know the results.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Cheers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Stefan&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 21:04:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/how-to-scroll-gui-table-in-vb/qaa-p/9298410#M101913</guid>
      <dc:creator>Stefan-Schnell</dc:creator>
      <dc:date>2013-11-20T21:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to scroll GUI table in VB</title>
      <link>https://community.sap.com/t5/additional-q-a/how-to-scroll-gui-table-in-vb/qaa-p/9298411#M101914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm getting an error message "Object required: WScript" for the above script and the one I found here..&lt;A _jive_internal="true" href="https://answers.sap.com/thread/3336725" title="http://scn.sap.com/thread/3336725"&gt;http://scn.sap.com/thread/3336725&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I modified your previous program like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;'-Begin-------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Not&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;IsObject&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(application&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Set&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; SapGuiAuto&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;GetObject&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;"SAPGUI"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Set&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; application&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; = SapGuiAuto.GetScriptingEngine&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;  &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;End&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;If&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;  &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Not&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;IsObject&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(connection&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Set&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; connection&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; = application.Children&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;  &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;End&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;If&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;  &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Not&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;IsObject&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(session&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Set&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; session&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; = connection.Children&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;  &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;End&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;If&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; ContentToFind&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;ContentToFind&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;InputBox&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;"Enter search text"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;'Set WShell = CreateObject("WScript.Shell")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;'Set WShell = WScript.CreateObject("WScript.Shell")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;'  session.findById("wnd[0]/tbar[0]/okcd").text = "/nSU01D"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;'  session.findById("wnd[0]/tbar[0]/btn[0]").press &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;'  session.findById("wnd[0]/usr/ctxtUSR02-BNAME").text = "SSHUGA"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;'  session.findById("wnd[0]/tbar[1]/btn[7]").press &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;'  session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpACTG").select&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;  table&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;"wnd[0]/usr/tblSAPLQPAATC_PLMK"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;  &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Set&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; tab&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; = session.findById&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(table&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;  &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;'ContentToFind = "&amp;amp; Input"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;  ContentToFind&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;"&lt;STRONG&gt;Trait - YG purity&lt;/STRONG&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;  &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;For&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; i&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;To&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; tab.Rows.Count&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; - &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;'-Search for entry in the table-------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;      &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; session.findById&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(table&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;"/txtPLMKB-KURZTEXT[11,"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;CStr&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(i&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;) &amp;amp; _&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;        &lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;"]"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;).Text&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; = ContentToFind&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;        session.findById&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(table&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;).verticalScrollbar.position&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;CStr&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(i&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;) &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;""&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;        &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;'session.findById("wnd[0]/usr/txtRQPAS-ENTRY_ACT").text = "" &amp;amp; CStr(i) &amp;amp; ""&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;        session.findById&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;"wnd[0]"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;).sendVKey&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;        fld&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; = session.findById&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(table&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;"/txtPLMKB-KURZTEXT[11,"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;CStr&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(i&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;) &amp;amp; _&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;        &lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;"]"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;).Text&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;        &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;MsgBox&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; fld&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;" Found it"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;        &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Exit&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;For&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;      &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;End&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;If&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;'-Send key down-----------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;'      WShell.AppActivate "Display User"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;'      WShell.SendKeys "{DOWN}"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;'      WScript.Sleep 250&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;'-Send page down for the next rows, if the entry was not found------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;      &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; i&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; = tab.Rows.Count&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; - &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Then&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;'Page down is 82&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;        session.findById&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;"wnd[0]"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;).sendVKey&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;82 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;        &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Set&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; tab&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; = session.findById&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(table&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;        i&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;      &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;End&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;If&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;'-Exit if first empty row reach-------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;      &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Trim&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(session.findById&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(table&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;"/txtPLMKB-KURZTEXT[11,"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &amp;amp; _&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;        &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;CStr&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(i&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;) &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;"]"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;).Text&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;) = &lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;        &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Exit&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;For&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;      &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;End&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;If&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;  &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Next&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;'-End-------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;commented out WShell and using sendVKey 82.&lt;/P&gt;&lt;P&gt;This script runs but is not searching for text "&lt;STRONG style="color: #808080; font-family: 'Courier New';"&gt;Trait - YG purity&lt;/STRONG&gt;" but returns some random text.&lt;/P&gt;&lt;P&gt;I think its not scrolling window right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 22:43:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/how-to-scroll-gui-table-in-vb/qaa-p/9298411#M101914</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-20T22:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to scroll GUI table in VB</title>
      <link>https://community.sap.com/t5/additional-q-a/how-to-scroll-gui-table-in-vb/qaa-p/9298412#M101915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;'-Begin-----------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; '-Directives----------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Option Explicit&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; '-Variables-----------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim WshShell&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; '-Main----------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set WshShell = CreateObject("WScript.Shell")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If IsObject(WshShell) Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox "It works"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set WshShell = Nothing&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox "Can't initialize WScript.Shell"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;'-End-------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tell us the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 09:58:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/how-to-scroll-gui-table-in-vb/qaa-p/9298412#M101915</guid>
      <dc:creator>Stefan-Schnell</dc:creator>
      <dc:date>2013-11-22T09:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to scroll GUI table in VB</title>
      <link>https://community.sap.com/t5/additional-q-a/how-to-scroll-gui-table-in-vb/qaa-p/9298413#M101916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I get a popup "It works"&lt;/P&gt;&lt;P&gt;Not sure why I'm getting object required: WScript error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Stefan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 15:24:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/how-to-scroll-gui-table-in-vb/qaa-p/9298413#M101916</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-22T15:24:02Z</dc:date>
    </item>
  </channel>
</rss>

