+ Reply to Thread
Results 1 to 3 of 3

VBA Evaluate Formula and "Copy Down" Result as String/Value to Last Row

  1. #1
    Registered User
    Join Date
    08-24-2012
    Location
    aus
    MS-Off Ver
    Excel 2013 (Home) Excel 2010 (Work)
    Posts
    26

    VBA Evaluate Formula and "Copy Down" Result as String/Value to Last Row

    Hi there,
    I have a piece of code which is working beautifully but at 500000 lines it is occasionally causing out of Memory issues when I run some other macros after it because it stores the actual formula in the cell. I wish for the Macro to evaluate the formula in relevant to the row it is in but only paste the value as text in the cell instead of having 6 coloumns * 500000 lines of formula saved in cells:

    Here is the code:
    Please Login or Register  to view this content.
    Is it possible to manipulate this VBA to paste only the values from Row 1 to 500000 down coloumns A to F?

  2. #2
    Registered User
    Join Date
    08-24-2012
    Location
    aus
    MS-Off Ver
    Excel 2013 (Home) Excel 2010 (Work)
    Posts
    26

    Re: VBA Evaluate Formula and "Copy Down" Result as String/Value to Last Row

    In other worlds if I could make coloumn E be:

    Please Login or Register  to view this content.
    or

    Please Login or Register  to view this content.
    So then the contens of E13 would be the result of the formula above ....and the contents of E500000 would be the result of the formula:

    =IF(CONCATENATE(C500000,D500000)=""UR"","""",IF(S500000="""","""",S500000)

    (I know this isn't a real coding possibility but you may understand what I wish to achieve.)

    Cheers,
    Last edited by falkon007; 04-22-2013 at 12:03 AM.

  3. #3
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: VBA Evaluate Formula and "Copy Down" Result as String/Value to Last Row

    you could try simply entering the formula then converting it to a value. also since you're using 2010 or later you can use IFERROR
    Please Login or Register  to view this content.
    for example.
    Josie

    if at first you don't succeed try doing it the way your wife told you to

+ 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