![]() ![]() Session.findById("wnd/usr/tblSAPDV70ATC_NAST3").Columns.elementAt(0).Width = 4īut when I do the following it works properly (puts "no icon" )and end exit the macro: If I don't put in error handling method, once there is no icon, vba shows that the problem is on the below line: I tried to put on error resume next but the problem is that it only work once and then it start puting the same value in column C and B regardless if there is a green icon or not. I have a list of element in excel (Column A) that I want to check in sap and instead of checking one by one manually I'm working on a macro to check all the items on excel and returns the value of the icon (if green in sap, it should return the icon value and put it on column "C") if it doesn't find the icon it should put the value : no icon found on column "B". it supposed to put the icon value(Green per example) in column C if there is any and to leave column C empty and put "No icon " on column B and then go to the next cell and check again if there is an icon or now. I think I have a problem with the error handling statement maybe. I'm new to vba and sap gui scripting, could someone point me into the right direction please?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |