Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Max Max is offline
external usenet poster
 
Posts: 390
Default Help to find a code

I need a code for a workbook of 3 sheets. This code must do flashing cells
(not fonts) and the sheets are named ( Serie A, Serie B and Serie C).

I want these flashing cells as soon I open the workbook.

Serie A ( Cells AN6 and AW6)

Serie B ( Cells AN6 and AW6)

Serie C ( Cells AN6, AW6, AN83 and AW83).

Thanks for your help.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,565
Default Help to find a code

Here is a novelty procedure that I wrote. Maybe you can use it to develop
something:
The delay function is called by the ColrRng procedure.


Sub ColrRng() 'Displays different colors in four quadrants
Worksheets(2).Cells.Clear
Worksheets(2).Rows.UseStandardHeight = True
Set Rng1 = Range("$A$1:$I$18")
Set Rng2 = Range("$J$1:$U$18")
Set Rng3 = Range("$A$19:$I$45")
Set Rng4 = Range("$J$19:$U$45")
Rng1.BorderAround ColorIndex:=2, Weight:=xlMedium
Rng2.BorderAround ColorIndex:=2, Weight:=xlMedium
Rng3.BorderAround ColorIndex:=2, Weight:=xlMedium
Rng4.BorderAround ColorIndex:=2, Weight:=xlMedium
counter = 1
Do
If counter = 1 Then
Set newWordArt = Worksheets(2).Shapes. _
AddTextEffect (PresetTextEffect:=msoTextEffect3, _
Text:="WATCH THIS", FontName:="Ravie", FontSize:=26, _
FontBold:=True, FontItalic:=False, Left:=575, Top:=100)
Set newWordArt = Worksheets(2).Shapes. _
AddTextEffect(PresetTextEffect:=msoTextEffect3, _
Text:="WATCH THIS", FontName:="Ravie", FontSize:=26, _
FontBold:=True, FontItalic:=False, Left:=125, Top:=400)
Worksheets(2).Shapes(1).Fill.ForeColor.RGB = RGB(255, 100,
0)
Worksheets(2).Shapes(2).Fill.ForeColor.RGB = RGB(200, 255,
150)
End If
If counter = 2 Or counter = 4 Or counter = 6 Or counter = 8
Or _
counter = 10 Then
Worksheets(2).Shapes(1).IncrementLeft -450
Worksheets(2).Shapes(2).IncrementLeft 450
End If
If counter = 3 Or counter = 5 Or counter = 7 Or counter = 9
Then
Worksheets(2).Shapes(1).IncrementLeft 450
Worksheets(2).Shapes(2).IncrementLeft -450
End If
Rng1.Interior.ColorIndex = counter
Rng2.Interior.ColorIndex = counter + 4
Rng3.Interior.ColorIndex = counter + 7
Rng4.Interior.ColorIndex = counter + 9
HalfSecDly
counter = counter + 1
Loop Until counter = 11
Rng1.BorderAround LineStyle:=(-4142)
Rng2.BorderAround LineStyle:=(-4142)
Rng3.BorderAround LineStyle:=(-4142)
Rng4.BorderAround LineStyle:=(-4142)
Worksheets(2).Shapes(2).Delete
Worksheets(2).Shapes(1).Delete
End Sub

Public Function HalfSecDly()
s = Timer + 0.5
Do While Timer < s
DoEvents
Loop
End Function


"MAX" wrote in message
...
I need a code for a workbook of 3 sheets. This code must do flashing cells
(not fonts) and the sheets are named ( Serie A, Serie B and Serie C).

I want these flashing cells as soon I open the workbook.

Serie A ( Cells AN6 and AW6)

Serie B ( Cells AN6 and AW6)

Serie C ( Cells AN6, AW6, AN83 and AW83).

Thanks for your help.



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't find my VBA code Bev Kaufman Excel Programming 4 April 2nd 08 03:57 PM
Find last row code Mike Milmoe Excel Discussion (Misc queries) 2 June 11th 07 08:48 PM
cannot find code Gail Hines Excel Programming 3 December 6th 04 10:05 PM
Help with this Find code please [email protected] Excel Programming 2 December 18th 03 03:05 AM
VBA Code to FIND Christine[_4_] Excel Programming 3 July 17th 03 08:24 PM


All times are GMT +1. The time now is 08:02 PM.

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

About Us

"It's about Microsoft Excel"