vba - VBS Excel cell to SAP -


i struggeling right informations excel sheet via vbs script sap.

a single cell works fine , added sap original excel sheet contains cell last 4 digits needs deleted , afterwards combined cell , added sap.

this works me:

session.findbyid("wnd[0]/usr/tabstabspr1/tabpsp06/ssubtabfra1:saplmgmm:2000/subsub5:saplzmm_gincofields:5802/ctxtmarc-prctr").text = (objsheet.cells(6,"p") & (objsheet.cells(38,"p")).value) 

but dont:

session.findbyid("wnd[0]/usr/subsubscr_bewert:saplctms:5000/tabstabstrip_char/tabptab1/ssubtabstrip_char_gr:saplctms:5100/tblsaplctmschars_s/ctxtrctms-mwert[1,1]").text = (objsheet.cells(40,"f") & (left((40,"f"), len(40,"f") - 4)) & (objsheet.cells(39,"l") & (objsheet.cells(39,"o").value)    

the error message while starting script means translated: ...at 207 ')' excpected...

thanks in advance having @ , providing or hint.

you using left(40,"f"): suspect mean objsheet.cells(40, "f"). same len call, suspect want is: len(objsheet.cells(40, "f")). putting together:

left(objsheet.cells(40, "f"), len(objsheet.cells(40, "f")) - 4) & objsheet.cells(39, "l") & objsheet.cells(39, "o") 

Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -