Results 1 to 4 of 4

VBA to search for set day and highlight column

Threaded View

Crawfy VBA to search for set day and... 08-19-2018, 06:24 AM
SjonR Re: VBA to search for set day... 08-19-2018, 06:28 AM
bakerman2 Re: VBA to search for set day... 08-19-2018, 09:49 AM
Crawfy Re: VBA to search for set day... 08-20-2018, 02:59 AM
  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.
    Sub FindSelectedDate()
    
    Dim DateRngS As Range, DateCell As Range
    Dim EntireColumn
    Dim Interior
    
    Set DateRng = Range("T14:OX14")
    For Each DateCell In DateRng
    If DateCell.Value = Range("I8") Then DateCell.Select
    Next
    
    With Selection
        .EntireColumn.Select
    End With
    
    End Sub
    Attached Files Attached Files

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