Results 1 to 2 of 2
  1. #1
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Lewes, East Sussex, Sussex, United Kingdom
    Posts
    232
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Running a Shell command (Excel 2003 SP1)

    I wonder if anyone can help me with this one.

    I want to Shell a program from Excel by running this line of code :

    lngID = Shell("C:Program FilesCommon FilesMicrosoft SharedMODI11.0MSPVIEW.EXE", 1)

    In Word this works fine, but in Excel the code just hangs until I do a Control-Break. Once I Continue from there, it's fine. It seems as if Excel is running this modally whereas Word is not.

    If anyone has any bright ideas, I would really appreciate that.

    Usual thanks for your help

    Nick

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Running a Shell command (Excel 2003 SP1)

    I cannot reproduce the problem. MSPView starts and the code continues when I try it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •