Hello all, I am a newbie to manipulating Word model with VBS. I am trying to do something in VBS that I can do in VBA.
I am converting a table to text (in a Word doc) using the converToText method.
I have everything working except I can't specify the Seperator type in VBS.
This works, but doesn't separate:
Set objTable = objDoc.Tables(1)
objTable.Rows.ConvertToText (or objTable.ConvertToText)
VBA does this:
Selection.Rows.ConvertToText Separator:=wdSeparateByTabs, NestedTables:= True
This doesn't work:
Set objTable = objDoc.Tables(1)
objTable.Rows.ConvertToText Separator:=wdSeparateByTabs, _ NestedTables:= True
I have tried the MSDN methods and they don't seem to work either.
I hate quitting,but I'm at my wits end!
Thanks in advance
Jim
I am converting a table to text (in a Word doc) using the converToText method.
I have everything working except I can't specify the Seperator type in VBS.
This works, but doesn't separate:
Set objTable = objDoc.Tables(1)
objTable.Rows.ConvertToText (or objTable.ConvertToText)
VBA does this:
Selection.Rows.ConvertToText Separator:=wdSeparateByTabs, NestedTables:= True
This doesn't work:
Set objTable = objDoc.Tables(1)
objTable.Rows.ConvertToText Separator:=wdSeparateByTabs, _ NestedTables:= True
I have tried the MSDN methods and they don't seem to work either.
I hate quitting,but I'm at my wits end!
Thanks in advance
Jim