+ Reply to Thread
Results 1 to 4 of 4

Select range of rows based on cell value

  1. #1
    Forum Contributor
    Join Date
    03-13-2008
    MS-Off Ver
    Office 365
    Posts
    134

    Select range of rows based on cell value

    Hi,

    In Cell R1, I have some number (say 50), I want macro to select range(C1:C50) and put Text as "ABC".

    Any advice please.

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

    Re: Select range of rows based on cell value

    No VBA expert but this works

    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.

  3. #3
    Forum Expert
    Join Date
    06-25-2009
    Location
    Sofia, Bulgaria, EU
    MS-Off Ver
    Excel 2003-2013
    Posts
    1,290

    Re: Select range of rows based on cell value

    Please Login or Register  to view this content.
    of course, it assumes there is valid number in R1 (i.e. integer between 1 and Rows.Count)
    Note, apart from few, very specific/special use cases, there is no need to select anything in VBA.
    If you are pleased with a member's answer then use the Star icon to rate it.

  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: Select range of rows based on cell value

    Maybe:

    Please Login or Register  to view this content.

+ 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. [SOLVED] Macro that will select range based off cell value in multiple rows
    By hambly in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-09-2013, 03:05 PM
  2. [SOLVED] Hide select rows based on value in a dynamic range
    By rhiminee in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-21-2013, 01:19 PM
  3. [SOLVED] Macro that will select range based off cell value in multiple rows
    By hambly in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-14-2013, 09:12 AM
  4. Select a range based on a cell value
    By Thug in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-27-2013, 05:09 PM
  5. [SOLVED] Select a range of rows based on start row and end row being values in two worksheet cells
    By xlnube in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-18-2012, 08:41 PM
  6. [SOLVED] Select rows based on date range and copy to multiple tabs
    By B-Rell in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-01-2012, 09:27 AM
  7. VBA select cell range based upon the # of rows that make up a certain merged cell?
    By clemsoncooz in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-04-2012, 12:22 PM
  8. select range based on a cell value
    By modytrane in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-19-2008, 04:31 AM

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