+ Reply to Thread
Results 1 to 3 of 3

Macro button to save file in excel, format of excel

  1. #1
    Registered User
    Join Date
    08-17-2013
    Location
    chicago
    MS-Off Ver
    Excel 2003
    Posts
    27

    Exclamation Macro button to save file in excel, format of excel

    Hi

    I have a macro in which you push a button and it automatically pops up the save as, however my problem is that I don't get to choose what type of format I want to save it as. It only gives me the option of ALL FILES.

    So my code is application.saveasfile. - how can I change this so it will give me the option to save it as an excel document (give me the dropdown of choosing what type of format I want)

    Thank you for your help.

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Macro button to save file in excel, format of excel

    why not paste here your macro ?
    If solved remember to mark Thread as solved

  3. #3
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Macro button to save file in excel, format of excel

    Hi, sunshne900,

    maybe due to the fact that you use Application.GetSaveAsFilename which will deliver path and filename for a string for further use. Please have a look at Application.Dialogs(xlDialogOpen).Show, difference here is that the action will take place at once.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

+ 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. Converting excel 2003 file ext macro file-save code to reflect excel 2007 exts
    By pmanoloff in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-20-2013, 12:17 PM
  2. Replies: 3
    Last Post: 02-04-2013, 12:18 PM
  3. Replies: 1
    Last Post: 01-16-2013, 02:02 AM
  4. VBScript Code to Save an Excel File in Excel 97-2003 Format
    By HishamSingalaxana in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-03-2010, 04:34 AM
  5. [SOLVED] Why will Excel will not save text format in a .csv file
    By davis in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-25-2006, 01:50 PM

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