View Single Post
 
Old 03-06-2015, 07:58 AM
gmaxey gmaxey is offline Windows 7 32bit Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,601
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

Put this code in a standard module of your template:

Code:
Option Explicit
Private m_ThisApp As clsThisApp
Sub AutoNew()
  InitiateAppClass
lbl_Exit:
  Exit Sub
End Sub
Sub AutoOpen()
  InitiateAppClass
lbl_Exit:
  Exit Sub
End Sub
Sub InitiateAppClass()
  Set m_ThisApp = New clsThisApp
End Sub
Put the previous code in a class module that you have named clsThisApp
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote