+ Reply to Thread
Results 1 to 3 of 3

Change existing MACRO to only copy/paste Values

  1. #1
    Registered User
    Join Date
    03-31-2010
    Location
    Portland, OR
    MS-Off Ver
    Excel 2007
    Posts
    38

    Change existing MACRO to only copy/paste Values

    Please Login or Register  to view this content.
    This above Macro copies a range from Sheet "Variables" and pastes into AlgoTester so on and so on.
    This works perfectly if the values in Sheet "Variables" only contain values with no formulas.
    I would like to have the range in Sheet "Variables" contain formulas and have the Macro only COPY and PASTE the values of that range.
    As of right now it will not function properly without that change.

    I know the fix is in this line here: SpecialCells(xlConstants, xlNumbers) , but not sure what the exact code would be for this.

    Can anyone help me out with this?

    Thanks!

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

    Re: Change existing MACRO to only copy/paste Values

    If the entire range of cell will have formulas, then the simple edit might be:

    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-31-2010
    Location
    Portland, OR
    MS-Off Ver
    Excel 2007
    Posts
    38

    Re: Change existing MACRO to only copy/paste Values

    Thanks. That is exactly what I needed.

+ 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