I have a .vbs file that makes various operation on a excel file and then paste some text from it in Word.
Obviously the text is pasted into Word in a table and i want to convert it in simple text separated by tab.
Vba code to do that is:
Set objWD = WScript.CreateObject ("Word.Application")
objWD.Selection.Tables(1).Select
objWD.Selection.Rows.ConvertToText Separator:=wdSeparateByTabs, NestedTables:= True
This code doesn't work in vbscript... how can i "convert" it to use in a .vbs file? I think the problem is in the ":=" part of the code but i don't know how to fix this...
Thx in advance for your help and time
Obviously the text is pasted into Word in a table and i want to convert it in simple text separated by tab.
Vba code to do that is:
Set objWD = WScript.CreateObject ("Word.Application")
objWD.Selection.Tables(1).Select
objWD.Selection.Rows.ConvertToText Separator:=wdSeparateByTabs, NestedTables:= True
This code doesn't work in vbscript... how can i "convert" it to use in a .vbs file? I think the problem is in the ":=" part of the code but i don't know how to fix this...
Thx in advance for your help and time