Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I think function is working - just can't see the results. Command line opens
briefly in task bar and then closes, but no error is returned that I can see. Function is returning a non-zero value. Underscore you suggested below also works, but still cannot view results. "Peter T" wrote: Would it work if you replaced the space in "print cat.txt" with say an underscore. If so try embracing the string in the shell function with an additional pair of quotes, perhaps chr(34) & "string" & chr(34) Regards, Peter T "bill_morgan" wrote in message ... Excel 2000 running in XP: Having trouble getting consistent results from VBA Shell Function. For example, this command appears to run okay, but doesn't print cat.txt, which is located in root directory. Is there something wrong with syntax? Thanks .... ID = Shell("command.com /c print cat.txt") bill morgan |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Shell Command | Excel Programming | |||
Winzip - Shell Execute | Excel Programming | |||
Shell command | Excel Programming | |||
xp shell command using vba | Excel Programming | |||
SHELL command | Excel Programming |