PC Review


Reply
Thread Tools Rate Thread

Blinking Text

 
 
Suresh Lohar
Guest
Posts: n/a
 
      22nd May 2010
I want to know the method, how do I get text blink in a excel sheet.
 
Reply With Quote
 
 
 
 
Tom Hutchins
Guest
Posts: n/a
 
      22nd May 2010
You have to use a macro to do that in Excel. This link explains how:
http://www.cpearson.com/Excel/BlinkingText.aspx

If you are new to macros, this link to Jon Peltier's site may be helpful:
http://peltiertech.com/WordPress/200...e-elses-macro/

Hope this helps,

Hutch

"Suresh Lohar" wrote:

> I want to know the method, how do I get text blink in a excel sheet.

 
Reply With Quote
 
Rick Rothstein
Guest
Posts: n/a
 
      22nd May 2010
Just to follow up on Tom's message... be sure to read the Summary section at
the bottom of the webpage for that first URL link... ESPECIALLY the part in
parentheses on that last bulleted item.

--
Rick (MVP - Excel)



"Tom Hutchins" <(E-Mail Removed)> wrote in message
news:1841CFDF-71F2-437D-963E-(E-Mail Removed)...
> You have to use a macro to do that in Excel. This link explains how:
> http://www.cpearson.com/Excel/BlinkingText.aspx
>
> If you are new to macros, this link to Jon Peltier's site may be helpful:
> http://peltiertech.com/WordPress/200...e-elses-macro/
>
> Hope this helps,
>
> Hutch
>
> "Suresh Lohar" wrote:
>
>> I want to know the method, how do I get text blink in a excel sheet.


 
Reply With Quote
 
Suresh Lohar
Guest
Posts: n/a
 
      24th May 2010
Thanks, macros are working but only when I run macros.

Otherwise when I open the file, it doesn't blink automatically.

Why is so sir.

Suresh
 
Reply With Quote
 
Suresh Lohar
Guest
Posts: n/a
 
      24th May 2010

Public RunWhen As Double

Sub StartBlink()
With ThisWorkbook.Worksheets("CALCULATION").Range("D4").Font
If .ColorIndex = 3 Then ' Red Text
.ColorIndex = 2 ' White Text
Else
.ColorIndex = 3 ' Red Text
End If
End With
RunWhen = Now + TimeSerial(0, 0, 1)
Application.OnTime RunWhen, "'" & ThisWorkbook.Name & "'!StartBlink", ,
True
End Sub

Sub StopBlink()
ThisWorkbook.Worksheets("CALCULATION").Range("D4").Font.ColorIndex = _
xlColorIndexAutomatic
Application.OnTime RunWhen, "'" & ThisWorkbook.Name & "'!StartBlink", ,
False
End Sub
Private Sub Workbook_Open()
StartBlink
End Sub

Private Sub Workbook_BeforeClose(Cancel As Boolean)
StopBlink
End Sub


I used this macro, but text blink only then when I run the macros.
When I open this file, Text doesn't blink automatically.
Kindly help sir in this regard. Thanks a lot.

 
Reply With Quote
 
Rick Rothstein
Guest
Posts: n/a
 
      24th May 2010
The Workbook_Open and the Workbook_BeforeClose procedures are workbook event
code and, as such, must be placed in the ThisWorkbook module, not the BAS
Module you now have them in (macros go in the BAS Module, but event code
goes in the sheet or workbook module that they apply to). You can open the
ThisWorkbook module by double clicking the ThisWorkbook entry from Project
window.

--
Rick (MVP - Excel)



"Suresh Lohar" <(E-Mail Removed)> wrote in message
news:EE8B22D8-75AF-4F33-986E-(E-Mail Removed)...
>
> Public RunWhen As Double
>
> Sub StartBlink()
> With ThisWorkbook.Worksheets("CALCULATION").Range("D4").Font
> If .ColorIndex = 3 Then ' Red Text
> .ColorIndex = 2 ' White Text
> Else
> .ColorIndex = 3 ' Red Text
> End If
> End With
> RunWhen = Now + TimeSerial(0, 0, 1)
> Application.OnTime RunWhen, "'" & ThisWorkbook.Name & "'!StartBlink", ,
> True
> End Sub
>
> Sub StopBlink()
> ThisWorkbook.Worksheets("CALCULATION").Range("D4").Font.ColorIndex = _
> xlColorIndexAutomatic
> Application.OnTime RunWhen, "'" & ThisWorkbook.Name & "'!StartBlink", ,
> False
> End Sub
> Private Sub Workbook_Open()
> StartBlink
> End Sub
>
> Private Sub Workbook_BeforeClose(Cancel As Boolean)
> StopBlink
> End Sub
>
>
> I used this macro, but text blink only then when I run the macros.
> When I open this file, Text doesn't blink automatically.
> Kindly help sir in this regard. Thanks a lot.


 
Reply With Quote
 
Suresh Lohar
Guest
Posts: n/a
 
      24th May 2010
sir, many many thanks, it works now.

Thanks for quick and kind cooperation.

Suresh Lohar
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
blinking text charles arnett Microsoft Frontpage 10 8th May 2010 02:16 AM
how do I add flashing text or blinking text in Excel? =?Utf-8?B?UGF1bGEgQnJlbm5hbg==?= Microsoft Excel Misc 1 31st Oct 2006 07:27 AM
How do i remove text effects (blinking text) from my signature? =?Utf-8?B?QnJvYWRjYXN0IE1hcmtldGluZyAmIEVudGVydGFp Microsoft Access Getting Started 1 7th Aug 2006 08:09 PM
Blinking Text KK Microsoft Excel Programming 2 16th Nov 2005 10:57 AM
I have an application running under XP Pro that is supposed to pull text files from the CD drive. When I try to load a text file, the app generally hangs up, never even blinking the disk light. Sometimes, if I wait long enough (15-20 minutes) it =?Utf-8?B?R3JlZWJv?= Windows XP Help 0 20th Dec 2003 01:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:05 AM.