+ Reply to Thread
Results 1 to 3 of 3

Colouring cells depending on letter value

  1. #1
    Registered User
    Join Date
    11-08-2016
    Location
    Hampshire, Portsmouth
    MS-Off Ver
    2010
    Posts
    1

    Colouring cells depending on letter value

    i've been using a macro to colour individual cells depending on the letter entered into the cell, but when i decreased the number of rows in the spreadsheet i get:

    runtime error '13':
    type mismatch

    the macro works fine until i start deleting columns, a brief example is shown below, any help would be appreciated.

    Please Login or Register  to view this content.
    Last edited by slartybardfast; 11-08-2016 at 08:25 PM. Reason: advised on protocol

  2. #2
    Valued Forum Contributor
    Join Date
    02-06-2014
    Location
    N/A
    MS-Off Ver
    N/A
    Posts
    373

    Re: Colouring cells depending on letter value

    I would suggest that you determine the last row and last column in your data set, and specify them in your for loop.

    Example Functions:

    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Colouring cells depending on letter value

    Please Login or Register  to view this content.
    Kind regards
    Leo

+ 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. Multiply depending on if letter is in cell
    By Appleseed in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-29-2015, 10:21 AM
  2. Replies: 5
    Last Post: 07-23-2015, 08:38 AM
  3. [SOLVED] Match letter of ranges depending value entered
    By cgkmal in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-03-2014, 07:50 PM
  4. Colouring areas depending on column values
    By tuppari in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-10-2012, 06:58 PM
  5. Colouring boxes depending on values
    By se7encm in forum Excel General
    Replies: 4
    Last Post: 08-20-2010, 07:03 AM
  6. Automatically Colouring a cell depending on the value in it
    By help-needed in forum Excel General
    Replies: 3
    Last Post: 01-15-2007, 10:56 AM
  7. Colouring a row depending on data entered in a column
    By Gazivaldo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-25-2005, 10:25 AM

Tags for this Thread

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