If you open it using a macro started with a shortcut key combination that
includes the Shift Key, then you need to use one that does not use the shift
key. the shift key seems to disable macros (similar to when you open a
workbook manually and hold down the shift key).
--
Regards,
Tom Ogilvy
wrote in message ...
I believe you are on to something Tom. I do open the file with a macro,
and
if I open it manually, the worksheet_open event runs correctly. So now
what?
gm
Tom Ogilvy wrote:
How do you open the workbook with the workbook_open event? Do you open
it
with a macro. Does the macro run if you open it manually?
--
Regards,
Tom Ogilvy
wrote in message ...
The Workbook_Open() code is in the ThisWorkbook module, and it still
doesn't work. Thanks for the suggestion, but I prefer running it on
open so that each time the worksheet opens it corrects for any changes
made in the last edits.
Guy
JE McGimpsey wrote:
Unless you don't have the Workbook_Open() code in the ThisWorkbook
module, it should work fine.
However, instead of running a macro every time, why not select the
entire sheet and use the technique found he
http://cpearson.com/excel/banding.htm
In article , wrote:
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