+ Reply to Thread
Results 1 to 2 of 2

conditional formatting via macro help!?

  1. #1
    Forum Contributor
    Join Date
    12-01-2010
    Location
    Southampton, England
    MS-Off Ver
    Excel 2007
    Posts
    303

    conditional formatting via macro help!?

    Hello, i have been trying to record conditional formatting via macro however this does not seem to work at all. Huge dilemma! I was wondering if some one could provide a few simple sample conditional formatting macros which i could then edit/manipulate to create my conditional formatting.



    Ive given a small list of the formats required.

    1. if cells in range = blank fill with (colour index "x")

    2. if cell below ="staff" fill with (colour indedex "x")

    3. if cell 15 to the left isnumber fill with colour index x and make font colour index x.

    4. if cell to the left = "staff id" apply border to the right hand side of this cell

    5. if cell above ="staff" format cells to "#-#-#"

    (# represeenting numbers)


    Any help what so ever on any of these tasks will be greatly appreciated!

    Many thanks Alan

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,083

    Re: conditional formatting via macro help!?

    The easiest way is to start recording a macro, go into Conditional Formatting, set some conditions and formats and then click OK. Stop the macro recording and you will have the basis for your code.

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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