+ Reply to Thread
Results 1 to 2 of 2

Window 7 - Excel 2010 setting? VBA ActiveSheet.SaveAs Filename not posting name to dialog

  1. #1
    Registered User
    Join Date
    03-07-2011
    Location
    Berlin, CT
    MS-Off Ver
    Excel 2003
    Posts
    2

    Window 7 - Excel 2010 setting? VBA ActiveSheet.SaveAs Filename not posting name to dialog

    I recently changed over from a Windows XP box running Excel 2010 to a 64 bit Window 7 box running Excel 2010. One of my macros would bring up a save box upon opening, making the user save the template. I would populate the filename with a new name and allow the user to select the directory.

    Please Login or Register  to view this content.
    On the new box, when the macro is run, the save dialog comes up, the the filename does not populate.

    Is this a setting in Excel, a glitch in Windows 7 or a change in programming requirements?

    Thanks!

  2. #2
    Registered User
    Join Date
    03-07-2011
    Location
    Berlin, CT
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Window 7 - Excel 2010 setting? VBA ActiveSheet.SaveAs Filename not posting name to dia

    One of our inhouse Gurus came to my rescue. He found a link that explains this problem (see link for full explaination below). It has to do with the file filter criteria.

    •if the extension of the filemane you provide is the same as the last one in the filter criteria, the name is not cleared
    •if you do not provide an extension on the filename, the name is also not cleared
    •if you supply an extension that is either not in the list of wildcard extensions or not the last one, the name is cleared (in XP the full name would be enclosed in double quotes)

    The fix is to set a file filter criteria that will match the file type you want to save as before the save.

    Please Login or Register  to view this content.
    Weird bug in Excel’s Application.GetSaveAsFileName() function on Vista and 7

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Open Word SaveAs dialog from Excel VBA
    By simonc2 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-20-2013, 12:35 PM
  2. Excel 2010 ActiveSheet save as PDF and attach to Email
    By xmachinex in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-28-2012, 07:38 AM
  3. ActiveSheet.SaveAs
    By chromachem in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-22-2010, 03:17 PM
  4. [SOLVED] ActiveSheet.SaveAs
    By Telecommm in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-17-2006, 04:35 AM
  5. Filename at the very top of Microsoft Excel Window
    By Skyking in forum Excel General
    Replies: 2
    Last Post: 04-28-2005, 12:06 AM

Tags for this Thread

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