Hi all,
Sorry for a very "newbie" question, Ive just started getting involved in VB6, (mainly work on VBA in MSacces.)
Could anyone please tell me how to launch a command after a option is located in a combo Box.
For Example in a Cmmbo box list, I may have Paintshop, Pageplus and Winword. What I would like to do is select one, lets say Winword,and once selected the winword program would run, rather than have to click another command button taking the value of the combo box to launch the program.
If I code in on the Combobox the following, nothing happens:
if combo1 = "windword" then
Dim ad as string
ad = Shell(c:\Program Files\MSoffice\winword.exe,vbMaximizedFocus)
nothing happens.
I hope thats understandable
Many thanks
ModeX
Sorry for a very "newbie" question, Ive just started getting involved in VB6, (mainly work on VBA in MSacces.)
Could anyone please tell me how to launch a command after a option is located in a combo Box.
For Example in a Cmmbo box list, I may have Paintshop, Pageplus and Winword. What I would like to do is select one, lets say Winword,and once selected the winword program would run, rather than have to click another command button taking the value of the combo box to launch the program.
If I code in on the Combobox the following, nothing happens:
if combo1 = "windword" then
Dim ad as string
ad = Shell(c:\Program Files\MSoffice\winword.exe,vbMaximizedFocus)
nothing happens.
I hope thats understandable
Many thanks
ModeX