+ Reply to Thread
Results 1 to 5 of 5

Make all values of rows static if condition met

  1. #1
    Forum Contributor
    Join Date
    01-16-2014
    Location
    London
    MS-Off Ver
    Excel 2003 Excel 2010
    Posts
    189

    Make all values of rows static if condition met

    Hi everyone,

    I need a simple macro to make all cell values in a row static, based on the related value in column A. If the value in column A is empty, then just ignore it. Otherwise if the value is not empty, then make the whole row as static value.

    For example, if cell A2 is not empty, then all values of row 2 are made static. If cell A3 is empty, then ignore row 3.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Make all values of rows static if condition met

    You are asking for how to do this for a row, so here is how to do it for a row. If you need to systematically review multiple rows then you will need to provide a little more information about the overall problem. This operates on the first 8 rows; this code should go in the module for the worksheet containing the data.

    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Make all values of rows static if condition met

    Try this:

    Please Login or Register  to view this content.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  4. #4
    Forum Contributor
    Join Date
    01-16-2014
    Location
    London
    MS-Off Ver
    Excel 2003 Excel 2010
    Posts
    189

    Re: Make all values of rows static if condition met

    Hi Jeff, Arkadi, thank you for the great help. Your code both works nicely

  5. #5
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Make all values of rows static if condition met

    Very welcome
    Thanks for marking the thread as solved, and for the rep.

+ 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. Static date with if condition
    By ajeshvnair in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-05-2013, 03:46 PM
  2. Sum of values in rows with matching condition
    By _saiko in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-22-2011, 10:20 AM
  3. Replies: 3
    Last Post: 06-10-2010, 04:31 PM
  4. Using Today() and making it Static based on a particular condition. Part-II
    By all4excel in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-04-2008, 03:49 AM
  5. [SOLVED] Using Today() and making it Static based on a particular condition.
    By all4excel in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-29-2008, 05:09 PM

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