+ Reply to Thread
Results 1 to 3 of 3

Code to paste values and save workbook with another name, extension

  1. #1
    Registered User
    Join Date
    10-07-2011
    Location
    The Great State of Texas
    MS-Off Ver
    Excel 2013
    Posts
    28

    Code to paste values and save workbook with another name, extension

    Hi! I am trying to modify the code below to paste values and delete a couple of columns in a macro enabled workbook and then save as a macro free workbook, keeping the macro enabled workbook intact. When debugging the code, it asks me if I want to save the .xlsm file (which I do), seems to go through the pasting and deleting chores just fine, but asks me about 5-6 times if I want to save the same file, then eventually gets pass the "Next sh" line and gives me a 1004 error on the line where I am trying to save the new workbook as a macro free workbook as "ThanksFinal." I would appreciate your help in getting this to work. Thanks!

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by madaboutgolf; 11-14-2011 at 05:18 PM.

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Code to paste values and save workbook with another name, extension

    madaboutgolf,

    Give this a try:
    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    10-07-2011
    Location
    The Great State of Texas
    MS-Off Ver
    Excel 2013
    Posts
    28

    Re: Code to paste values and save workbook with another name, extension

    It's so nice to have a spreadsheet guru to help the less fortunate. Thank you! Works great!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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