简体   繁体   中英

SAP GUI VBA loop through cells of report variant

maybe someone can give me a hint, I need to loop through the text cells of a report variant (RSEOUT00) until I find the next empty textcell and there I need to fill in the content from an Excel cell.

Session.FindByID("wnd[1]/usr/tabs/TAB_STRIP/tabpNOSV/ssubSCREEN_HEADER:SAPLALDB:3030/tblSAPLALDBSINGLE_E/txtRSCSEL_255-SLOW_[1,0]").text <> ""

How can I increment in /txtRSCSEL_255-SLOW_[1,0]").text the 0 and do something on the empty line found?

for example:

. . .

i = i + 1

Session.FindByID("wnd[1]/usr/tabs/TAB_STRIP/tabpNOSV/ssubSCREEN_HEADER:SAPLALDB:3030/tblSAPLALDBSINGLE_E/txtRSCSEL_255-SLOW_[1," & cstr(i) & "]").text <> ""

. . .

Regards,

ScriptMan

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM