+ Reply to Thread
Results 1 to 8 of 8

Copy and Paste Values for cells containing specific formulas

  1. #1
    Registered User
    Join Date
    04-20-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    51

    Copy and Paste Values for cells containing specific formulas

    Hello All,

    What can I do to write a macro that would find all index formulas and copy and paste their values across all worksheets in a workbook? I have a find all macro but can't develop it since it errors out when trying to copy unlinked cells. This will be for a lot of workbooks so can't be written for 1 specific workbook.

  2. #2
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Copy and Paste Values for cells containing specific formulas

    You want to find all index formulas and replace the formula with the results of the formulas?
    Click the * Add Reputation button in the lower left hand corner of this post to say thanks.

    Don't forget to mark this thread SOLVED by going to the "Thread Tools" drop down list above your first post and choosing solved.

  3. #3
    Registered User
    Join Date
    04-20-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    51

    Re: Copy and Paste Values for cells containing specific formulas

    Yes, that is correct. Index is just one example but I don't want to change my master files but don't want any formulas that do references to my personal workbooks. The issue is that there are formulas that need to stay since they are affected by the recipient. I just used Index as an example but it will be consistent in the workbooks I place the macro in so all I would need to do is change the search word and it would update the macro.

  4. #4
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Copy and Paste Values for cells containing specific formulas

    Try this and we can customize it if necessary.
    It excludes the first sheet so that you can copy that sheet if you want to run the macro again.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-20-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    51

    Re: Copy and Paste Values for cells containing specific formulas

    Unfortunately it is not working on my computer. I'll play around with it once I have time to see if there is a solution.

  6. #6
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Copy and Paste Values for cells containing specific formulas

    Your profile shows you have Excel 2010, the same version as I.
    Is this the case and are you on a PC?
    You open the file enable editing and macros and run the macro and what?
    Not working is generic. Doesn't do what you expected, crashes your computer, you get an error message?

  7. #7
    Registered User
    Join Date
    04-20-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    51

    Re: Copy and Paste Values for cells containing specific formulas

    It isn't performing the task when I switch it to look for the formula GXL.

  8. #8
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Copy and Paste Values for cells containing specific formulas

    What does GXL do/mean? Can you provide some sample data showing how it is used in your formulas?

+ 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. [SOLVED] Copy and Paste Formulas in a Given Range to Specific Multiple Worksheets
    By gophins in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-25-2015, 04:46 PM
  2. Copy Formulas and Paste into the Last Set # of Rows Only & Paste Values
    By Mr. Ice in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-23-2014, 07:48 AM
  3. Copy and paste values into next sheet. (blank cells contain formulas)
    By Vlad717 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-14-2013, 06:54 AM
  4. Replies: 2
    Last Post: 03-05-2013, 07:52 AM
  5. Replies: 5
    Last Post: 11-03-2012, 05:10 PM
  6. macro to copy cells with formulas and paste them as values
    By sammi8796 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-25-2012, 08:00 PM
  7. Copy and Paste Special Values Macro ignoring cells with specific condition
    By chendriks47 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-06-2011, 03:01 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