Thread: Shell
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Stuart[_20_] Stuart[_20_] is offline
external usenet poster
 
Posts: 1
Default Shell

I am using the "Shell" comand from Excel to open different files. This works
fine until the path contains a space.

for instance, the following line

Shell "start " & pName & "\test.htm"

WORKS
when pName = "C:\Active\pictures\html\clifton"

FAILS
when pName = "C:\Active\pictures\html\alton on tees"


i.e. when the path contains a space an error is thrown!
Any Suggestions!