mss7 Posted March 8, 2006 Report Share Posted March 8, 2006 I want to know if this is possible or not. I want to run a macro from command line, pass some variable values into it, then I want the macro to open up a form and fill out the form (which has edit fields, checkboxes, drop-downs, etc.) using the values passed in the variables. Example: I pass variable T1=Its hot outside. If there is a form with one edit field, I want to use the value in T1 to paste it into the edit field. Does anyone know if this is possible? If yes how ? Thanks in advance. Quote Link to comment Share on other sites More sharing options...
mss7 Posted March 8, 2006 Author Report Share Posted March 8, 2006 I wanted to add something. I already know how to pass value into variable and use it to paste it into text box display. But so far I have'nt found anything on how to use the value to paste it into an edit field on a form. Quote Link to comment Share on other sites More sharing options...
mss7 Posted March 8, 2006 Author Report Share Posted March 8, 2006 i see there have been some views to this post but no replies.. hoping some1 replies....hopefully with a positive answer Quote Link to comment Share on other sites More sharing options...
kevin Posted March 9, 2006 Report Share Posted March 9, 2006 If there is a form with one edit field, I want to use the value in T1 to paste it into the edit field. so far I have'nt found anything on how to use the value to paste it into an edit field on a form.If the value you want to type is in T1 then move to the edit file (using mouse movements or text type commands as needed) and do a TextType: %T1%. I want to run a macro from command line, pass some variable values into it, then I want the macro to open up a form and fill out the form (which has edit fields, checkboxes, drop-downs, etc.) using the values passed in the variables.This is possible. To run a macro from the command line you do something like the following: "c:\Program Files\Macro Express3\meproc.exe" /AMacroName To pass variables into the macro do this: "c:\Program Files\Macro Express3\meproc.exe" /AMacroName /VT1:Its hot outside Then add the Variable Restore command in your macro before accessing any of the variables. See http://www.macros.com/help/macexp3.htm for more information about passing variables from the command line. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.