(vlax-invoke-method
wFnd "Execute" nil :vlax-false :vlax-false :vlax-true :vlax-false :vlax-false :vlax-true 1 :vlax-true nil 2)
correct execute callCode: [Select](vlax-invoke-method wFnd "Execute" nil :vlax-false :vlax-false :vlax-true :vlax-false :vlax-false :vlax-true 1 :vlax-true nil 2)
I could be wrong, but you seem to be using regexp notation for working in Autocad. Try changing lines 32, 41 and 50 to match the original since you are working in Word.
Didn't realise it was such big of a deal if all the arguments were not supplied for this Execute method.this is not 100% true
will try to alert all the propertiesjust use Inspect tool in VLIDE
will try to alert all the propertiesjust use Inspect tool in VLIDE
it works perfectly with Word's objects
but does it require importing the ms word library at first? - I guess so (my inspect tool is blank where it lists the props'n'methods)no, importing is not required
but does it require importing the ms word library at first? - I guess so (my inspect tool is blank where it lists the props'n'methods)no, importing is not required
i'd send a screenshot, but not until Monday
having holidays ;)
Grrr both Lee and I posted code that allows searching for words and changing colour just uses the simplicity of mtext, search cadtutor.
i'd send a screenshot, but not until Mondayi'm surprised that it doesn't work for you, Grrr1337
BTW Does that mean you can inspect any external object like that, so you get everytime all the properties and methods?some of them will and some of them won't
some of them will and some of them won't
you'll have to test every one of them to be sure
for example (vlax-create-object "MSXML2.DOMDocument.6.0") and (vlax-create-object "WinHTTP.WinHTTPRequest.5.1") both work fine