Message 1 of 6
Running VBA Macro with Parameter from Autocad Command line

Not applicable
07-01-2003
04:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
How do you run a vba macro using a variable as a command line item?
I would expect it would be something like this, but it does not work.
-vbarun SiteMenu.SetSiteMenu 5
Where SiteMenu.SetSiteMenu is the macro and 5 is the variable that I want to
pass.
The sub code looks like
Sub SetSiteMenu(intMenu as Integer)
Exit
I would expect it would be something like this, but it does not work.
-vbarun SiteMenu.SetSiteMenu 5
Where SiteMenu.SetSiteMenu is the macro and 5 is the variable that I want to
pass.
The sub code looks like
Sub SetSiteMenu(intMenu as Integer)
Exit