Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I'm using QV9 and when i want to reload appear: Error in expression: ')' expected
I was trying to discover the problem and finally i find it but i don't understand what's wrong.
The error appear when the file open and that moment use a macro with this script:
set v = ActiveDocument.Variables("BirthdayDate")
v.SetContent "=timestamp(today()+1,'DD/MM/YYYY')", true
if it works in a button, why that error message when open the document?
Thanks
Hi Fourth ,
In the Edit Module . In the lefthand side change the current local security to "Allow System Access" .
Hope this helps you.
Regards,
Chakravarthy.
Hi,
Can you try this one,
sub t
set v = ActiveDocument.GetVariable("Variable1")
v.SetContent "timestamp(today()+1,'DD/MM/YYYY')", true
End Sub
Regards,
Ravi
i was trying differents scripts and finally found one that works:
v = ActiveDocument.Evaluate("=date(today()+1,'DD/MM/YYYY')")
ActiveDocument.Variables("BirthdayDate").SetContent v, true
Thanks!