G
George Lee
Is there a limitation to using Range's Start and End properties directly? In
the help files, the following works properly:
Set rngDoc = ActiveDocument.Range(Start:=0, End:=10)
as does
ActiveDocument.Range(Start:=0, End:=10).Bold = True
But using this in my code, I always get "Wrong number of arguments or
invalid property assignment" when using:
myString = Selection.Range(Start:=100, End:=150).Text
or
myString = whichDocument.Tables(1).Range(Start:=100, End:=150).Text
the help files, the following works properly:
Set rngDoc = ActiveDocument.Range(Start:=0, End:=10)
as does
ActiveDocument.Range(Start:=0, End:=10).Bold = True
But using this in my code, I always get "Wrong number of arguments or
invalid property assignment" when using:
myString = Selection.Range(Start:=100, End:=150).Text
or
myString = whichDocument.Tables(1).Range(Start:=100, End:=150).Text