compile error expected variable or procedure not module

  • Hi
    I am trying to save my workbook auto macro on my doc with date and name but am getting this error all the time and i am using window office 2003
    thanks


    am getting this error : compile error expected variable or procedure not module

  • Re: compile error expected variable or procedure not module


    Your problem could be in the code that is called by the events like HideAllSheets.


    Are the workbook events in the correct module?


    Attach an example of the workbook