Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
eiconsulting
Partner - Creator
Partner - Creator

Elimination of macros

I have problems with macro getting QV stuck (CTRL+ALT+DEL) ... while I get any answer or possible diagnoses about this... I'm trying to kill all macros at least behind buttons. I cannot change the button text but I can use two buttons one of which desappears alternatively.

In one case I have to assign to a variable a "formula" that in VBScript was like this:

oggiVar.SetContent "=MonthEnd(MakeDate(%Year,%Month))", true

If I try to do that with a string "xxx" using the Set Variable Action of the button it doesn't work (the variable is displayed as a text with the " only before ??)

If I try to do it omitting the quoting the expression is calculated beforehand so that it doesn't change with the %Year %Month variables later on (the variable is displayed as a fixed date).

How do you state that the function has to be taken LITERALLY?

Thanks Flavio

Federico Sason | Emanuele Briscolini
1 Solution

Accepted Solutions
eiconsulting
Partner - Creator
Partner - Creator
Author

SIMPLER THAN I THOUGHT... tried this and it works?

Any better way - i.e. more explicit?

=Capitalize('=MonthEnd(MakeDate(%Year,%Month))')

Federico Sason | Emanuele Briscolini

View solution in original post

1 Reply
eiconsulting
Partner - Creator
Partner - Creator
Author

SIMPLER THAN I THOUGHT... tried this and it works?

Any better way - i.e. more explicit?

=Capitalize('=MonthEnd(MakeDate(%Year,%Month))')

Federico Sason | Emanuele Briscolini