+ Reply to Thread
Results 1 to 5 of 5

Conditional Formatting more than 3

  1. #1
    Registered User
    Join Date
    04-22-2012
    Location
    Derby,England
    MS-Off Ver
    Excel 2016
    Posts
    28

    Conditional Formatting more than 3

    I have using the following code for conditional formatting

    Please Login or Register  to view this content.
    This works fine in itself however it only works if I put the code in a worksheet but I need it to apply to multiple worksheets (some are yet to be created). So when I put the code into "ThisWorkbook" the conditional formatting does not work.

    Thank you

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Conditional Formatting more than 3

    You can do this -

    Put the code in a standard module and have a code like this
    Please Login or Register  to view this content.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    04-22-2012
    Location
    Derby,England
    MS-Off Ver
    Excel 2016
    Posts
    28

    Re: Conditional Formatting more than 3

    Hi Arlette,

    Like this, if so it is not working
    Please Login or Register  to view this content.
    Also did you happen to have chance to look at my other post regarding auto allocation?

    thank you

    Ian

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Conditional Formatting more than 3

    You need to put the code in a standard module -

    Copy the Excel VBA code
    Select the workbook in which you want to store the Excel VBA code
    Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
    Choose Insert | Module
    Where the cursor is flashing, choose Edit | Paste

    To run the Excel VBA code:
    Choose Tools | Macro | Macros
    Select a macro in the list, and click the Run button.

    Also change this line from
    Please Login or Register  to view this content.
    To
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    04-22-2012
    Location
    Derby,England
    MS-Off Ver
    Excel 2016
    Posts
    28

    Re: Conditional Formatting more than 3

    Thank you. Your support is very welcome. The issue is now solved
    Thank you

+ 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