+ Reply to Thread
Results 1 to 4 of 4

Multi Colour Conditional Formatting on calculate

Hybrid View

  1. #1
    Registered User
    Join Date
    10-30-2003
    Posts
    50

    Red face Multi Colour Conditional Formatting on calculate


    Morning All,

    I have a spreadsheet which has lots of garish colours on it (not my design) and I would like it to update the colours on link update (the spreadsheet is linked to lots of other spreadsheets).

    I have the multi-conditional formatting code working using the "Private Sub Worksheet_Change(ByVal Target As Range)" function.

    This does work in the changing cell colour but only when the cell is entered and the enter key is pressed.

    Is there any way to automatically change the colours when updating the links?

    TIA,

    MoonWeazel



  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,524
    How about

    Private Sub Worksheet_SelectionChange(ByVal Target As Range)

    End Sub


    or

    Private Sub Worksheet_Activate()

    End Sub

  3. #3
    Registered User
    Join Date
    10-30-2003
    Posts
    50
    thanks for the response!

    it does work but not when the links are updated on opening.

    cheers!

    lou

  4. #4
    Forum Contributor Stuie's Avatar
    Join Date
    09-17-2006
    Location
    Suffolk, UK
    MS-Off Ver
    Excel 2003/2007
    Posts
    432
    you could mayb do this.

    Write the code that changes the formats into a sub eg:

    Sub colourChange()
    
    End Sub
    and then on the workbook open you could do this:

    Private Sub Workbook_Open()
    
    Call colourChange
    
    End Sub
    this will run the colour change macro each time the workbook is opened and then you can run the macro in the other ways with the same "Call colourChange" statment.

+ 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