VBScript don't allow named parameters, only positional.
So, this VBA syntax: Selection.HomeKey Unit:=wdStory, Extend:=wdMove
may be replaced in VBS by something like this:
yourWordAppObj.Selection.HomeKey 6, 0 'wdStory, wdMove
Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.