+ Reply to Thread
Results 1 to 8 of 8

Macro to change formulas to values

  1. #1
    Forum Contributor
    Join Date
    01-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    402

    Post Macro to change formulas to values

    Hi,

    I want to update some cells based on daily basis linked with dates.
    I have a formula which will do that.

    What I want is a macro which will change those cells to paste special values which has a value and keep the formulas as it is if the cell is blank (I mean no values).

    Is it possible.

    The range what I a looking is only for
    rows 2,6,7,9,14

    The remaining rows should not effect with the macro.
    Last edited by kishoremcp; 06-18-2013 at 08:52 AM.

  2. #2
    Forum Contributor
    Join Date
    01-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    402

    Re: Macro to change formulas to values

    can somebody edit this and give it for my requirement.
    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Macro to change formulas to values

    This seems to work

    Converts all non blank cells in rows 2,6,7,9 and 14 to values

    Please Login or Register  to view this content.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

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

    Re: Macro to change formulas to values

    Maybe:

    Please Login or Register  to view this content.
    G would be the last column with data

  5. #5
    Forum Contributor
    Join Date
    01-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    402

    Re: Macro to change formulas to values

    Hi JOHN H. DAVIS,

    The range is not columns, it is rows.

  6. #6
    Forum Contributor
    Join Date
    01-17-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    402

    Re: Macro to change formulas to values

    Hi Special-K,

    Not converting non blank rows to values. Still I can see the formula/function even after running the macro.

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

    Re: Macro to change formulas to values

    Quote Originally Posted by kishoremcp View Post
    Hi JOHN H. DAVIS,

    The range is not columns, it is rows.
    The macro is operating on the rows you specified. You only need to change Column G in the macro to the last used Column in your spreadsheet.

  8. #8
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,437

    Re: Macro to change formulas to values

    Please Login or Register  to view this content.
    Edit: having re read the posts in this thread I not sure whether the code will do what you want.
    Try posting example workbook with before and after appearence to clarify what you deem to be blank/formula/empty cell
    Last edited by Andy Pope; 06-18-2013 at 08:51 AM.
    Cheers
    Andy
    www.andypope.info

+ 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