Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default make worksheet tab blink?

Is there a way to make the tab on an excel worksheet blink? I have a
multi-tab workbook that is opened every day. I want to blink a specific cell
if data exists in that tabs column A but not B.

Basically it's a task in column A and a completed in column B. I want to
blink the tab if the task is not completed so the person opening the workbook
will notice it and go to the tab. thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default make worksheet tab blink?

In theory it'd be possible to set up a timer to change the tab colour, at
least in Excel 2003 or later. However blinking cells, tabs etc are
considered bad practice with good reason. There are other ways to warn user,
try this in a new workbook, copy the code into ThisWorkbook and normal
modules as directed (post back if you are not sure what they are).

' code in ThisWorkbook

Private Sub Workbook_BeforeClose(Cancel As Boolean)
If TaskNotComplete("close") = True Then
Cancel = True
End If
End Sub

Private Sub Workbook_Open()
TaskNotComplete "open"
End Sub

''' end code in ThisWorkbook


' code in a normal module

Function TaskNotComplete(sEvent As String) As Boolean
Dim sMsg As String
Dim result As VbMsgBoxResult
Dim mbs As VbMsgBoxStyle

If Worksheets("Sheet3").Range("C3") = "" Then
Worksheets("Sheet3").Activate
Range("C3").Select

Select Case sEvent
Case "close"
sMsg = "Do you want to complete Sheet3!C3 before closing ?"
mbs = vbYesNo Or vbQuestion

Case Else
sMsg = "Sheet3!C3 was not completed last time"
mbs = vbOKOnly Or vbInformation
End Select
result = MsgBox(sMsg, mbs, "Task not completed")
If result = vbYes Then
TaskNotComplete = True
End If

End If

End Function

Save the workbook
Attempt to close the workbook, answer Yes at the prompt
Attempt to close the workbook again and answer No
Reopen the workbook

Regards,
Peter T

"Daniel M" wrote in message
...
Is there a way to make the tab on an excel worksheet blink? I have a
multi-tab workbook that is opened every day. I want to blink a specific
cell
if data exists in that tabs column A but not B.

Basically it's a task in column A and a completed in column B. I want to
blink the tab if the task is not completed so the person opening the
workbook
will notice it and go to the tab. thanks.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
can you make a cell blink? pat67 Excel Worksheet Functions 4 January 9th 12 04:39 AM
Is there a way to make cells blink in excell cjsGetz Excel Discussion (Misc queries) 2 February 20th 08 06:44 PM
Can you make a cell blink? raven_guy Excel Worksheet Functions 2 June 8th 05 07:17 PM
Make a cell blink JenML5 Excel Discussion (Misc queries) 1 April 21st 05 03:59 PM
Is It Possible To Make A Cell Blink.. darno[_10_] Excel Programming 7 February 21st 04 01:26 PM


All times are GMT +1. The time now is 04:12 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"