string value from a menu

string value from a menu

Anonymous
Not applicable
200 Views
2 Replies
Message 1 of 3

string value from a menu

Anonymous
Not applicable
Is it possible give vba a string value from a menu


something like
-VBARUN "test.dvb!Modtest.test"holllo"";


where Modtest =

Sub test(strmenu As String)
MsgBox strmenu
End Sub
0 Likes
201 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
^C^C^P-vbarun;"test.dvb!Modtest.test";"holllo";

Public sub test()

dim sArg as String
sArg = Thisdrawing.utility.getstring(false)
'here is your string
MsgBox sArg

end sub

HTH,
Kevin

"LHGO" wrote in message
news:65AC2820481017C958307CD914B70DAA@in.WebX.maYIadrTaRb...
> Is it possible give vba a string value from a menu
>
>
> something like
> -VBARUN "test.dvb!Modtest.test"holllo"";
>
>
> where Modtest =
>
> Sub test(strmenu As String)
> MsgBox strmenu
> End Sub
>
>
0 Likes
Message 3 of 3

Anonymous
Not applicable
Thanks Kevin
"Kevin Terry" wrote in message
news:83EE1C3C9ADFDB67649D9B03ABB6594E@in.WebX.maYIadrTaRb...
> ^C^C^P-vbarun;"test.dvb!Modtest.test";"holllo";
>
> Public sub test()
>
> dim sArg as String
> sArg = Thisdrawing.utility.getstring(false)
> 'here is your string
> MsgBox sArg
>
> end sub
>
> HTH,
> Kevin
>
> "LHGO" wrote in message
> news:65AC2820481017C958307CD914B70DAA@in.WebX.maYIadrTaRb...
> > Is it possible give vba a string value from a menu
> >
> >
> > something like
> > -VBARUN "test.dvb!Modtest.test"holllo"";
> >
> >
> > where Modtest =
> >
> > Sub test(strmenu As String)
> > MsgBox strmenu
> > End Sub
> >
> >
>
>
0 Likes