Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have the following sub that will shade every other row in
a spreadsheet. It works fine if I run it manually via alt-F8 ---------------------------------------------------------------- Sub ShadeEveryOtherRow() Range("A2").EntireRow.Select Do While ActiveCell.Value < "" Selection.Interior.ColorIndex = 15 ActiveCell.Offset(2, 0).EntireRow.Select Loop End Sub ---------------------------------------------------------------- But if I try to have it run at open, it does nothing. I have tried placing the code directly in workbook_open, nothing happens. I have tried calling the sub in workbook_open, ---------------------------------------------------------------- Private Sub Workbook_Open() ShadeEveryOtherRow End Sub ---------------------------------------------------------------- and that doesn't work either. What the heck is going on here!? Thanks, gm |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Workbook_Open () | Excel Discussion (Misc queries) | |||
Workbook_Open() not running | Excel Programming | |||
Workbook_Open | Excel Programming | |||
Help with Workbook_Open | Excel Programming | |||
Workbook_Open event and combobox state storage question | Excel Programming |