Results 1 to 10 of 10

[Solved] How do I choose the best xlFileFormat for SaveAs

Threaded View

  1. #1
    Forum Contributor
    Join Date
    11-15-2012
    Location
    Buffalo, NY
    MS-Off Ver
    Office 365
    Posts
    319

    [Solved] How do I choose the best xlFileFormat for SaveAs

    I have a situation where I am creating a new workbook, and assigning a name from an algorithm. When I come to save it, I know exactly the name I want, and that it will be (eventually) an ".xlsm" file.

    I've tried saving it with the extension already added in (foobar.xlsm), but I get an error saying that I can't store macros in a plain vanilla spreadsheet (sounds like Excel wants to call the file foobar.xlsm.xlsx).

    OK - I have to pick a FileFormat value - but there are so many of them, and the documentation is (surprise,surprise) somewhat less than extensive.

    Can anybody give me a clue as to which xlFileFormat value I should supply so that my file ends up as foobar.xlsm?

    Thanks, in advance!

    Tony
    Last edited by tfurnivall; 01-28-2014 at 11:06 AM. Reason: Flag as solved

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Formula help to choose lowest cost from multiple vendors and then choose vendor
    By roland_arv in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-27-2013, 07:48 PM
  2. [SOLVED] CHOOSE Function (Automatic) - Automatic Choose Array
    By dluhut in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-13-2013, 03:22 PM
  3. Replies: 10
    Last Post: 01-17-2013, 01:42 PM
  4. BeforeSave and SaveAs to either save at predefined folder or let the user choose
    By Snyder in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-16-2010, 07:18 PM
  5. Using the SaveAs in VBA
    By caldog in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-04-2005, 09:05 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