Message 1 of 5
Passing an argument string from vb to a vba macro

Not applicable
01-22-2003
03:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm having trouble Passing an argument string from vb to a vba macro in a
batch plot routine I'm writing.
As vba does not have an drive list, dir list tools etc I decided to use vb6
to do the processing and call my vba plot macro which works on (VBA_LOADER
"K:/A2k/Vb-Macros/MyPlot.Dvb")(vl-vbarun "MyPlot") "A1 TO A3" from a menu
and tool button call.
But I cant pass the string with either
autocad.Application.ActiveDocument.SendCommand ("-vbarun" "MyPlot" "A1 TO
A3")
or
autocad.Application.RunMacro "Module1.MyPlot" "A1 TO A3"
in VB any clues ??
Also many thanks to the input I have received so far
I'm having trouble Passing an argument string from vb to a vba macro in a
batch plot routine I'm writing.
As vba does not have an drive list, dir list tools etc I decided to use vb6
to do the processing and call my vba plot macro which works on (VBA_LOADER
"K:/A2k/Vb-Macros/MyPlot.Dvb")(vl-vbarun "MyPlot") "A1 TO A3" from a menu
and tool button call.
But I cant pass the string with either
autocad.Application.ActiveDocument.SendCommand ("-vbarun" "MyPlot" "A1 TO
A3")
or
autocad.Application.RunMacro "Module1.MyPlot" "A1 TO A3"
in VB any clues ??
Also many thanks to the input I have received so far