Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I need a code to flashing 4 cells in a workbook of 3 sheets.
1. Sheet 1 (Cell A1) 2. Sheet 2 (Cell B1) and 3. Sheet 3 (Cells C1 and C2). If possible when I open the workbook, I find these 4 cells flashing without the need of run macro. Thank you for your help Masters. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
No and if it were possible I would advice against it
Some jurisdictions make flashing cells illegal (trouble for those with epilepsy) Think of another way (colour?) to draw attention to the cells best wishes -- Bernard V Liengme Microsoft Excel MVP http://people.stfx.ca/bliengme remove caps from email "MAX" wrote in message ... I need a code to flashing 4 cells in a workbook of 3 sheets. 1. Sheet 1 (Cell A1) 2. Sheet 2 (Cell B1) and 3. Sheet 3 (Cells C1 and C2). If possible when I open the workbook, I find these 4 cells flashing without the need of run macro. Thank you for your help Masters. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Max
You can do as follows. In ThisWorkbook module, add: Private Sub Workbook_BeforeClose(Cancel As Boolean) stopFlashing End Sub Private Sub Workbook_Open() startFlashing End Sub In a module, add: Option Explicit Dim nextSecond Sub startFlashing() flashCell End Sub Sub stopFlashing() On Error Resume Next Application.OnTime nextSecond, "flashCell", , False End Sub Sub flashCell() nextSecond = Now + TimeValue("00:00:01") Application.OnTime nextSecond, "flashCell" If Range("B1").Interior.ColorIndex = 36 Then Range("B1").Interior.ColorIndex = 41 Range("B1").Value = "Light Blue" ElseIf Range("B1").Interior.ColorIndex = 41 Then Range("B1").Interior.ColorIndex = 36 Range("B1").Value = "Light Yellow" End If End Sub Change the code as required for your purpose. -- Robert Author of RibbonX: Customizing the Office 2007 Ribbon: FOR THE LATEST TUTORIALS VISIT: http://www.msofficegurus.com "MAX" wrote: I need a code to flashing 4 cells in a workbook of 3 sheets. 1. Sheet 1 (Cell A1) 2. Sheet 2 (Cell B1) and 3. Sheet 3 (Cells C1 and C2). If possible when I open the workbook, I find these 4 cells flashing without the need of run macro. Thank you for your help Masters. |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I tried it and it didn't work. Why?
"Robert Martim, Excel" wrote: Max You can do as follows. In ThisWorkbook module, add: Private Sub Workbook_BeforeClose(Cancel As Boolean) stopFlashing End Sub Private Sub Workbook_Open() startFlashing End Sub In a module, add: Option Explicit Dim nextSecond Sub startFlashing() flashCell End Sub Sub stopFlashing() On Error Resume Next Application.OnTime nextSecond, "flashCell", , False End Sub Sub flashCell() nextSecond = Now + TimeValue("00:00:01") Application.OnTime nextSecond, "flashCell" If Range("B1").Interior.ColorIndex = 36 Then Range("B1").Interior.ColorIndex = 41 Range("B1").Value = "Light Blue" ElseIf Range("B1").Interior.ColorIndex = 41 Then Range("B1").Interior.ColorIndex = 36 Range("B1").Value = "Light Yellow" End If End Sub Change the code as required for your purpose. -- Robert Author of RibbonX: Customizing the Office 2007 Ribbon: FOR THE LATEST TUTORIALS VISIT: http://www.msofficegurus.com "MAX" wrote: I need a code to flashing 4 cells in a workbook of 3 sheets. 1. Sheet 1 (Cell A1) 2. Sheet 2 (Cell B1) and 3. Sheet 3 (Cells C1 and C2). If possible when I open the workbook, I find these 4 cells flashing without the need of run macro. Thank you for your help Masters. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Flashing cells | Excel Discussion (Misc queries) | |||
flashing cells | Excel Discussion (Misc queries) | |||
Excel Flashing Cells | Excel Discussion (Misc queries) | |||
remove flashing border after copying cells, how? | Excel Discussion (Misc queries) | |||
Blinking/Flashing Cells | Excel Discussion (Misc queries) |