+ Reply to Thread
Results 1 to 4 of 4

save as xlsm workbook

  1. #1
    Registered User
    Join Date
    03-12-2013
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2010
    Posts
    27

    save as xlsm workbook

    Firstly I know there are answers to this on the forum, but as the code in these answers are different to what I have here, I am getting a little tied up in knots.

    See the code below, the first save command for saving worksheet named "quote" is working exactly as I want it to.
    The second save for active worksheet is working, but I want it to save the entire workbook as an xlsm.

    Any help would be massively appreciated.

    Apologies if I am asking this in the wrong place!

    secondly, is there a way to change the quotename path, so that the user is selected depending on who is using the excel workbook and it auto saves to the location stated on their desktop, or would I need to change this path for each user?

    Please Login or Register  to view this content.
    Last edited by joee74; 01-20-2014 at 08:08 AM. Reason: needed to add further point

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: save as xlsm workbook

    Hi joee74,

    Here are a couple of ideas that should point you in the right direction. A workbook is attached with working examples of the following:

    ...I want it to save the entire workbook as an xlsm.
    The following code demonstrates how to 'Save As' different types of Workbooks.
    Please Login or Register  to view this content.

    secondly, is there a way to change the quotename path, so that the user is selected depending on who is using the excel workbook and it auto saves to the location stated on their desktop, or would I need to change this path for each user?
    The path can be changed. A system environment variable can be accessed to identify the user and or his home path. You can create permanent environment variables if needed (but not in Excel, and probably needing administrative privileges). Subfolders must already exist, but they can be created in Excel.

    The following accesses all system environment variables:
    Please Login or Register  to view this content.
    Lewis
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    03-12-2013
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: save as xlsm workbook

    Hi Lewis

    I can only apologise for the time it has taken for me to respond to you on this. I have been tied up in a different part of the business these past months.

    This is exactly what I needed and worked an absolute treat. I cant thank you enough

  4. #4
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: save as xlsm workbook

    I'm glad it worked out for you. I'm only too happy to share a solution that can save others time and aggravation.

    Lewis

+ 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. Split .xlsm workbook into multiple xlsm workbooks w/ 1 tab each
    By JenBR in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-23-2014, 07:05 PM
  2. Replies: 2
    Last Post: 10-04-2013, 10:12 AM
  3. [SOLVED] Copy/Save As xlsm workbook to new xlsm workbook is not copying the code with it
    By Grinchy in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-02-2013, 09:30 AM
  4. Save file xls file as xlsm - macro won't run in xlsm workbook
    By captbluefin in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-07-2012, 11:39 AM
  5. VBA to save a copy of .xlsm workbook as .xlsx
    By lanziniad in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-20-2012, 02:00 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