+ Reply to Thread
Results 1 to 5 of 5

VBA: searching for data in a column

  1. #1
    Registered User
    Join Date
    07-28-2009
    Location
    uk
    MS-Off Ver
    Excel 2003
    Posts
    3

    VBA: searching for data in a column

    Hi,

    I am trying to write some code to find a particular header cell of a column based on its contents and background colour. Once that cell is found i want to scan down the column for particular text and change the font colour if found.

    Here is what I have so far:

    Please Login or Register  to view this content.
    I think it is finding the header of the column but does not seem to be scanning down (possibly a problem with allocating the column as a range?)

    I'm pretty new to VBA so any help would be much appreciated.

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: VBA: searching for data in a column

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-28-2009
    Location
    uk
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: VBA: searching for data in a column

    That works great, thank you very much.

    Only one issue is that the text does not seem to revert back when the button is clicked again in the false state (the else statement not executing?)

  4. #4
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: VBA: searching for data in a column

    I missed your other error

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    07-28-2009
    Location
    uk
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: VBA: searching for data in a column

    Excellent, thanks alot Bob

+ 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