+ Reply to Thread
Results 1 to 6 of 6

help with conditional formatting macro

  1. #1
    Registered User
    Join Date
    09-15-2014
    Location
    michigan
    MS-Off Ver
    2003
    Posts
    94

    help with conditional formatting macro

    is there a better way of doing this I'm having an issue where it changes $b3 to $b56783 but if I step the macro using F8 it works correctly
    this macro is ran every time the work book is closed I was having an issue where if you clicked while closing the macro would have unpredicted results so I changed the code from testold to testnew now im having an issue with the link between $b# and row #


    Please Login or Register  to view this content.

    Please Login or Register  to view this content.
    windows 7 x64 excell 2003 still learning vbs

  2. #2
    Valued Forum Contributor spitfireblue's Avatar
    Join Date
    01-29-2015
    Location
    Adelaide, Australia
    MS-Off Ver
    2007,2010,2016
    Posts
    611

    Re: help with conditional formatting macro

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    09-15-2014
    Location
    michigan
    MS-Off Ver
    2003
    Posts
    94

    Re: help with conditional formatting macro

    Quote Originally Posted by spitfireblue View Post
    Please Login or Register  to view this content.
    I'm trying not to use .select as it is causing errors when some one happens to click while macro is running is there a method I can use that doesn't include using .select?
    my full code is
    Please Login or Register  to view this content.
    Last edited by MATT.B; 02-12-2016 at 01:15 PM.

  4. #4
    Valued Forum Contributor spitfireblue's Avatar
    Join Date
    01-29-2015
    Location
    Adelaide, Australia
    MS-Off Ver
    2007,2010,2016
    Posts
    611

    Re: help with conditional formatting macro

    What about like this?

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-15-2014
    Location
    michigan
    MS-Off Ver
    2003
    Posts
    94

    Re: help with conditional formatting macro

    same results
    row 3-10 is set to =OR($B65529="W",$B65529="w") (in sequence)
    then at row 11+ its set to =OR($B1="W",$B1="w") (in sequence)
    this started me thinking so I changed the code to only set row 3 and no others and it comes out as =OR($B65529="W",$B65529="w")
    for some reason the formula isn't being set correctly unless I use the .select method I think I'm stuck doing it that way but thank you for the help

  6. #6
    Valued Forum Contributor spitfireblue's Avatar
    Join Date
    01-29-2015
    Location
    Adelaide, Australia
    MS-Off Ver
    2007,2010,2016
    Posts
    611

    Re: help with conditional formatting macro

    I think that we are overthinking it...
    Try something like this at the start of your code:
    Please Login or Register  to view this content.
    and then end your code with this
    Please Login or Register  to view this content.
    Then you should be able to use Select

+ 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] Conditional Formatting or Macro?
    By aaw in forum Excel General
    Replies: 3
    Last Post: 03-27-2012, 06:04 PM
  2. Conditional formatting macro
    By Andula in forum Excel General
    Replies: 1
    Last Post: 10-26-2011, 07:55 AM
  3. Macro for formatting fonts and cell colours - not Conditional Formatting
    By Kayaness in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-07-2011, 03:46 AM
  4. Macro for conditional formatting
    By jbyrne in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-09-2010, 09:07 AM
  5. Conditional formatting macro..??
    By iaingear in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-21-2009, 03:08 AM
  6. Conditional formatting using a macro.
    By Jay3 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-30-2008, 08:09 PM
  7. Conditional Formatting Using a Macro
    By Jay3 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-30-2008, 12:00 PM
  8. Conditional Formatting in Macro
    By shantanu oak in forum Excel General
    Replies: 2
    Last Post: 07-14-2006, 08:15 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