+ Reply to Thread
Results 1 to 2 of 2

Colour adjacent cell when column contains text but not time Excel VBA

  1. #1
    Registered User
    Join Date
    11-06-2014
    Location
    UK
    MS-Off Ver
    Office 2003
    Posts
    10

    Colour adjacent cell when column contains text but not time Excel VBA

    Windows Server 2003
    Excel 2003

    Hello

    I've created a spreadsheet where you can type a text into column C and it'll colour the two adjacent cells (as well as remove the colours when you remove the text) but when I enter a time E.G. 16:00 it'll still colour the two cells which I don't want it to do.

    I know I can use conditional formatting to achieve this but I'd like to do it in VBA as I'm under a strict file size and will have thousands of rows of data at any given month so I want to use VBA if possible.

    Thanks for any help given

    Cheers,
    guyinahatgames
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    11-06-2014
    Location
    UK
    MS-Off Ver
    Office 2003
    Posts
    10

    Re: Colour adjacent cell when column contains text but not time Excel VBA

    Please Login or Register  to view this content.
    This is the main code I'm using

    Thanks,
    guyinahatgames

+ 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. Replies: 20
    Last Post: 06-21-2013, 03:07 AM
  2. Coding multiple text in Excel column, return value to adjacent column
    By Tania123 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-06-2012, 12:31 PM
  3. [SOLVED] Macro to change text colour of adjacent cell to the same text colour as target cell
    By kayoke in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 06-28-2012, 04:18 AM
  4. Colour a cell if having a match in adjacent column
    By meetvivek72 in forum Excel General
    Replies: 3
    Last Post: 07-07-2011, 09:21 AM
  5. Replies: 2
    Last Post: 06-07-2011, 07:00 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