Question : Autonew in Excel

Autonew is a sub that you can add to your MSWord Templates that it will execute once you start a new document (for a specific template).
My problem is that I am building a MSExcel template and I don't know what the equivalent of Autonew in Excel (if there is such a thing). Does anyone knows what the equivalent of Autonew? or can anyone tell me where can I enter codes into an Excel Templates to be executed when the user start a New document (of the template in question).
Your help is appreciated

Answer : Autonew in Excel

Workbook_Open is the only equivalent to the AutoNew procedure. However, this would run every time the workbook was opened.

To have it only run when a new workbook is created from the template for the first time, use the refined method that ture provided (and has been rewarded for):

Private Sub Workbook_Open()
   If ActiveWorkbook.Path = "" Then
       
      <>

   End If
End Sub
Random Solutions  
 
programming4us programming4us