+ Reply to Thread
Results 1 to 2 of 2

New workbook from xlsm to xlsx, same location different name?

  1. #1
    Forum Contributor
    Join Date
    08-29-2017
    Location
    London England
    MS-Off Ver
    2016
    Posts
    194

    New workbook from xlsm to xlsx, same location different name?

    Hi all, I'm trying to create a sub, that if we press the command button we assign to it will create a new workbook for us which is not a an xlsm but an xlsx and is saved to a the same place where my current workbook is, but under a different name, which would be "My_New_Report" and the current date as DD-MM-YY, and the new workbook should have Sheet1 (Code name) and Sheet4(Code name) copied over into it.

    But this code doesn't seem to work:

    Please Login or Register  to view this content.
    Compile error expected end of statement and the "My_New_Report" is highlighted (Including the doublequotes)

    Please help!

  2. #2
    Forum Contributor
    Join Date
    08-29-2017
    Location
    London England
    MS-Off Ver
    2016
    Posts
    194

    Re: New workbook from xlsm to xlsx, same location different name?

    Made it work!

    Please Login or Register  to view this content.

+ 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. Replies: 1
    Last Post: 06-18-2018, 07:24 PM
  2. saving xlsm workbook as xlsx protects the wkbook??
    By foxtrotter in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-08-2017, 05:34 PM
  3. Replies: 4
    Last Post: 07-17-2016, 12:37 AM
  4. Replies: 4
    Last Post: 04-04-2016, 04:09 AM
  5. [SOLVED] VBA to save .xlsm workbook to .xlsx and remove macros/code
    By Vegiepie2016 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-02-2016, 10:52 AM
  6. [SOLVED] Save .xlsm Workbook as .xlsx Workbook
    By HangMan in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-09-2015, 09:10 AM
  7. 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