Thread: Beginner at VBA
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Bob Simon Bob Simon is offline
external usenet poster
 
Posts: 4
Default Beginner at VBA

I'm beginning to teach myself VBA using Super-Easy Guide to the
Microsoft Office Excel 2003 Object Model
http://msdn.microsoft.com/library/de.../odc_super.asp

I'm stuck at the bottom of Lesson 4 where they are trying to show me
how to make Excel automatically run a macro when it starts up. The
timesheet macro runs fine by itself but when I put it in he
Private Sub Workbook_Open()
TimeSheet
End Sub
a window pops up that says:
Expected variable or procedure, not module

What am I doing wrong?

--
Bob Simon
remove both "x"s from domain for private replies