TheSwamp
Code Red => VB(A) => Topic started by: jura on August 26, 2004, 07:49:37 AM
-
Is it possible to transfer a var from a the commmand line to a simple VBA routine.
Here is what i want to do, this doesn't work, but should give you some idea.
Command line:
^C^C-vbarun QuadrantToggle(16)
VBA routine
Sub QuadrantToggle(VarName)
Dim VarName As Integer
'routine here
End Sub
-
I'm not really into menu macros but you could probably use VBASTMT. I can't get it to work directly but this seems to work:
^C^C(command "VBASTMT" "QuadrantToggle(16)");
-
Works like a charm!!!!
Thx a lot.
This saves a lot of reprogramming. One routine can do so much more now.