+ Reply to Thread
Results 1 to 2 of 2

Excel2016 Macro Button to save file as a new copy,values and format only,into a new folder

  1. #1
    Registered User
    Join Date
    10-12-2017
    Location
    Toronto
    MS-Off Ver
    2016
    Posts
    2

    Excel2016 Macro Button to save file as a new copy,values and format only,into a new folder

    Hello,

    I am learning VBA and still not good at it. I am trying to create a macro button that should do these:
    1. Create a copy of my workbook with all the sheets and save them into a new excel file with a specific name in a specific folder
    2. Copy only the values and format
    3. Do not show any buttons in the new file
    4. Delete the power query when it is saved in the new file
    5. Keep the button in the original file

    This is what I have so far. This code works but it copies the button and queries into the new file which I don't want. And for some reason, the button doesn't work in my original file when I open it again. It says that there aren't any assigned macros.
    Please Login or Register  to view this content.

    Thank you!
    Last edited by 6StringJazzer; 01-03-2018 at 12:51 PM. Reason: added code tags

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Excel2016 Macro Button to save file as a new copy,values and format only,into a new fo

    Please attach your actual file so we can see your query and buttons.

    The paper clip icon does not work for attachments. Instead, under the text box where you type your reply click the Go Advanced button. On the next screen scroll down and click on Manage Attachments, which will show a pop-up window to Select and Upload a file. Then close the window.

    Also, as a new member please take the time to review our rules. There aren't many, and they are all important. Rule #3 requires code tags. I added them for you this time because you are a new member.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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. VBA macro code hel to save a copy all sheets or entire file in a folder
    By sctr in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-18-2017, 07:44 AM
  2. Save Button that looks up latest file in folder, adds one and saves
    By Kucster in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-14-2014, 11:55 AM
  3. Add a new folder with Save File Button command VBA
    By RichardJSigKits in forum Excel General
    Replies: 4
    Last Post: 05-06-2014, 10:43 AM
  4. Macro button to save file in excel, format of excel
    By sunshne900 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-01-2013, 02:40 PM
  5. [SOLVED] macro code to save file to new folder with values and not formulas
    By gokzee in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-03-2013, 10:51 PM
  6. Save copy of file in other folder
    By lfmemp in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-06-2012, 03:37 PM
  7. [SOLVED] VBA Code to Save Copy File without Macro Button and VBA Code on Copy?
    By cychua in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 10-12-2012, 07:23 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