+ Reply to Thread
Results 1 to 3 of 3

If Cell.Value= "test" Fill Range with colour

  1. #1
    Registered User
    Join Date
    11-13-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2003, 2010
    Posts
    73

    If Cell.Value= "test" Fill Range with colour

    Hi, I've named range C1:X1 as RANGE
    What i need is excel to seach the range for values equals to test and then shade the cell from the active cell to the cell 10 rows below. Currently my code is like this :

    Please Login or Register  to view this content.
    Anyone know what should I replace with the Range? Thanks in advance. I'm using excel 2003 by the way.
    Last edited by rename; 12-10-2012 at 12:49 AM.

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: If Cell.Value= "test" Fill Range with colour

    hHi, rename,

    what about using Resize for that?
    Please Login or Register  to view this content.
    And I would use a Variabe called RANGE in VBA.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Registered User
    Join Date
    11-13-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2003, 2010
    Posts
    73

    Re: If Cell.Value= "test" Fill Range with colour

    Works perfect. Thanks

+ 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