+ Reply to Thread
Results 1 to 4 of 4

Modify macro to remove formulas

  1. #1
    Registered User
    Join Date
    03-14-2010
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007
    Posts
    4

    Modify macro to remove formulas

    Hello everyone,

    I need your help with modifying the below macro (I believe, I got this from excel forum only).

    This macro actually creates new sheet based on an existing sheet called as "Template" and it also renames the newly created sheet with the record name which are found in "Unique IP" list.
    For example, if Unique IP" sheet has 10 record names (a, b, & c), macro creates 10 new sheets identical to "Template" sheet and re-names those 10 sheets with respective record names (a, b, c etc ) found in Unique IP list.

    This code works perfectly, however, the macro is taking a very long time to run when there are 100 sheets in question. (P.S - "Temaplate" sheets has lot of formulas, and the same formulas will be copied to the new sheets when they are created for each record). This is making excel very slow

    What I want is, to have macro create sheets in interval
    - Should only create 10 records at a time and once formulas have populated results convert everything/formulas on these new sheets into values (copy paste special as values).
    - Once the above is done, proceed with the next 10 records.
    - The macro should stop once the sheets are created for all the records in "Unique IP" list


    Here is the macro that I'm using so far
    Please Login or Register  to view this content.
    Thanks in advance!
    Prithvi
    Last edited by JBeaucaire; 05-25-2013 at 09:02 AM. Reason: Added CODE tags and corrected title, as per Forum Rules. Take a moment to read the Forum Rules in the menu bar above. Thanks.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Modify macro to remove formulas

    This will change each sheet to "values" as it goes:

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    03-14-2010
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Modify macro to remove formulas

    JBeaucaire,

    This is FANTASTIC !!! Your code works like a charm and It does exactly what I need.

    Thank you so much for making my work easier.

    Best wishes!
    Prithvi

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Modify macro to remove formulas

    Glad to help. I've marked this thread as SOLVED for you.
    Next time, select Thread Tools from the links above and mark this thread as SOLVED. Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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