Results 1 to 2 of 2
  1. #1
    2 Star Lounger
    Join Date
    Jul 2003
    Location
    Park City, Utah
    Posts
    189
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Spaces in Filenames (Office 2003)

    I'm adding a link to a Word toolbar to open an Excel file, but the filename has spaces in it. How do I handle this:

    Shell ("Excel /f C:Ascend2020 PHX ADT.xls"), vbNormalFocus

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

    Re: Spaces in Filenames (Office 2003)

    You must enclose the name in quotes, but since the name is already inside a quoted string, you must double the quotes:
    <code>
    Shell "Excel /f ""C:Ascend2020 PHX ADT.xls""", vbNormalFocus</code>

Posting Permissions

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