Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am having trouble getting Paint started:
Sub paint1() Dim ReturnValue, i ReturnValue = Shell("C:\WINDOWS\system32\mspaint.exe", 1) AppActivate ReturnValue End Sub Raises a run time error 5 Sub paint2() Dim ReturnValue, i ReturnValue = Shell("C:\WINDOWS\system32\mspaint.exe", 1) MsgBox (ReturnValue) AppActivate ReturnValue End Sub Works just fine. Why do I need the MsgBox() before the AppActivate?? -- Gary''s Student - gsnu200755 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Shell function problem (MS Access) | Excel Programming | |||
Problem with Shell command | Excel Programming | |||
Shell Problem | Excel Programming | |||
Shell | Excel Programming | |||
Problem using Excel's "Shell" command | Excel Programming |