+ Reply to Thread
Results 1 to 5 of 5

VBA Formatting Added T Incorrect Column

  1. #1
    Forum Contributor
    Join Date
    05-26-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    682

    VBA Formatting Added T Incorrect Column

    Hi, I wonder whether someone could help me please.

    I've put together the following code which applies formatting to a given sheet.

    Please Login or Register  to view this content.
    The code works, except for this section:

    Please Login or Register  to view this content.
    What I'm trying to do is add the word "Fixed Resource" if any of the cells in column R, are emtpy.

    This works, but the problem is that it also applies the same value to the cells in column Q and I'm not sure why.

    I just wondered whether someone could possibly look at this please and let me know where I'm going wrong?

    Many thanks and kind regards

    Chris

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: VBA Formatting Added T Incorrect Column

    probably a typo
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    08-17-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    132

    Re: VBA Formatting Added T Incorrect Column

    Hi Chris,

    Change line
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    Hope this will fix the issue or else attach a sample file displaying required output.

    Regards,
    Last edited by BS Singh; 05-18-2014 at 09:39 AM.

  4. #4
    Forum Contributor
    Join Date
    05-26-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    682

    Re: VBA Formatting Added T Incorrect Column

    Hi @nilem, thank you for replying to my post and for the solution.

    I have to admit that it wasn't a typo but more stupidity on my part.

    I had assumed that the second cell reference was used to determine which rows to check, i.e if column B was blank don't check column R.

    A very useful learning experience!

    All the best and kind regards

    Chris

  5. #5
    Forum Contributor
    Join Date
    05-26-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    682

    Re: VBA Formatting Added T Incorrect Column

    Hi @BS Singh thank you also for taking the time to reply to my post and for the solution. It is greatly appreciated.

    All the best and kind regards

    Chris

+ 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. Incorrect Formula - conditional formatting
    By mahowarth in forum Excel General
    Replies: 4
    Last Post: 09-10-2013, 08:27 PM
  2. [SOLVED] Formatting the Master data with incorrect macro
    By Deepa12 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-11-2012, 11:26 PM
  3. Incorrect default locale when formatting cells
    By Tjbaer in forum Excel General
    Replies: 0
    Last Post: 07-29-2009, 06:30 PM
  4. Replies: 3
    Last Post: 07-22-2005, 08:05 PM
  5. Incorrect Date formatting
    By dionne_w in forum Excel General
    Replies: 2
    Last Post: 02-22-2005, 06:06 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