S Steve P Dec 28, 2009 #1 I need to set a variable in my vba code from a command button...how is that done?
M Marshall Barton Dec 28, 2009 #2 Steve said: I need to set a variable in my vba code from a command button...how is that done? Click to expand... simply use: myvariable = something But the usefulness of setting the variable depends on where/how the variable is declared and where/how it is used.
Steve said: I need to set a variable in my vba code from a command button...how is that done? Click to expand... simply use: myvariable = something But the usefulness of setting the variable depends on where/how the variable is declared and where/how it is used.