+ Reply to Thread
Results 1 to 4 of 4

Mysterious " " in SaveAs Dialog Box

  1. #1
    Mike
    Guest

    Mysterious " " in SaveAs Dialog Box

    Code is as follows
    sStr = "S:\Orders\" & Range("C4") & ".xls"
    Application.Dialogs(xlDialogSaveAs).Show sStr


    Assume C4 describes me... The Save As Dialog box pops up (like it shoud),
    the File Name Text Box Has the words: Mike is an Idiot.xls (Like it should),
    but Mike is an Idiot is in quotation marks like this:
    "Mike is an Idiot.xls"

    The quotes aren't there in C4 but they appear in the SaveAs Dialog box.
    Why? Does it matter? What could it affect? How do I get Rid of them? DEATH
    TO THE QUOTES!!!!

    -Mike


  2. #2
    Forum Contributor
    Join Date
    01-21-2005
    Location
    Colorado
    MS-Off Ver
    2000,2003,2007
    Posts
    481
    I couldn't reproduce your error.
    How do you have sStr declared?

  3. #3
    Vasant Nanavati
    Guest

    Re: Mysterious " " in SaveAs Dialog Box

    Look at my response in .worksheet.functions.

    --

    Vasant

    "Mike" <[email protected]> wrote in message
    news:[email protected]...
    > Code is as follows
    > sStr = "S:\Orders\" & Range("C4") & ".xls"
    > Application.Dialogs(xlDialogSaveAs).Show sStr
    >
    >
    > Assume C4 describes me... The Save As Dialog box pops up (like it shoud),
    > the File Name Text Box Has the words: Mike is an Idiot.xls (Like it

    should),
    > but Mike is an Idiot is in quotation marks like this:
    > "Mike is an Idiot.xls"
    >
    > The quotes aren't there in C4 but they appear in the SaveAs Dialog box.
    > Why? Does it matter? What could it affect? How do I get Rid of them?

    DEATH
    > TO THE QUOTES!!!!
    >
    > -Mike
    >




  4. #4
    Registered User
    Join Date
    09-29-2003
    Posts
    22
    I got the same issue and posted a similar question in theis forum

    The only way I found to get around it is to use the sendkeys option with the file name you want to save.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1