Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello at ALL,
I would to know why this WV example doesn't work.
------------------------------------------
sub var
set a= ActiveDocument.Variables("Variable1")
a.SetContent "123",true
end sub
------------------------------------------
returns an error..
Thanks
Best Regards,
Slash
Hi,
have you already added Variable1 (eg in Variable overview)?
Rgds,
Joachim
Hi,
No I have not. Why= first I have to create a variable called "a" and after I have to add and test the API script?
Thanks
Best Regards,
Slash
Yo have to create "Variable1" first, not "a". "a" is only the object reference in VBscript to this "Variable1". If "Variable1" does not exist, then the object "a" cannot be instantiated, thus the macro fails.
Rgds,
Joachim
Ok, now the variables works..
Thans
Best Regards
Ciao
Slash