+ Reply to Thread
Results 1 to 4 of 4

VBA to search for set day and highlight column

  1. #1
    Forum Contributor
    Join Date
    05-28-2016
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    119

    VBA to search for set day and highlight column

    I am attempting to use Cell I8 as the reference for the date i am searching for. I can enter the date via a Calendar Form or manually type it in I8.
    I have used the below code before to achieve this in another worksheet which finds the date in a column and highlights the row. Now i want to find the date in row 14 and highlight the column, and have excel center on the column if possible. It does this for my other worksheet. I am not sure why it isn't working now.
    Any help would be appreciated.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    05-12-2018
    Location
    Netherlands
    MS-Off Ver
    2016
    Posts
    266

    Re: VBA to search for set day and highlight column

    it works fine!

  3. #3
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: VBA to search for set day and highlight column

    This is not a true Worksheet event so code won't fire automatically.

    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  4. #4
    Forum Contributor
    Join Date
    05-28-2016
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    119

    Re: VBA to search for set day and highlight column

    Thx Bakerman2, that did the trick.

+ 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] Search for empty cell in a row, highlight a range in that column
    By MDW12 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-02-2016, 10:01 AM
  2. [SOLVED] VB Script search within a column in one Wb and find in another WB and Highlight yellow
    By DixieDiver in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 10-23-2014, 02:57 PM
  3. [SOLVED] Search Row by Column value and Highlight Text - For each Row
    By Discloner in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-08-2014, 01:52 PM
  4. Search and highlight hits only in Column C
    By kenelder in forum Excel General
    Replies: 5
    Last Post: 06-12-2013, 11:44 AM
  5. Replies: 4
    Last Post: 07-19-2012, 12:43 PM
  6. Search and Highlight
    By karinos57 in forum Excel General
    Replies: 1
    Last Post: 06-23-2008, 01:49 PM
  7. Search and Highlight
    By ftlkid24 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-31-2006, 02:24 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