/ Published in: Visual Basic
Expand |
Embed | Plain Text
'=============================================================================== ' Subroutine Name: SubName '------------------------------------------------------------------------------- ' Author: Roger Spencelayh '------------------------------------------------------------------------------- ' Purpose: '--------- ' description '------------------------------------------------------------------------------- ' Constants: '----------- ' Name Description '------------------ ---------------------------------------------------------- ' cStrSub - Procedure name for use in the error handler ' cStrDatabaseName - Database file '------------------------------------------------------------------------------- ' General Variables: '-------------------- ' Name Description '------------------ ---------------------------------------------------------- ' lngRowCount - Counter to hold number of rows in a range ' strWindowName - Handle for the Worksmart workbook opened in the routine '------------------------------------------------------------------------------- ' Revisions: '----------- ' Date By Reason ' ---------- --- --------------------------------------------------------------- ' dd/mm/mmmm RPS Initial release '=============================================================================== '=============================================================================== ' Set up constants, variables, settings and Error Handler '=============================================================================== Const cStrSub As String = "SubName" Const cStrWorkbookName As String = "" '------------------------------------------------------------------------------- ' Declare variables '------------------------------------------------------------------------------- Dim lngRowCount As Long Dim strWindowName As String '------------------------------------------------------------------------------- ' Error Handler and settings (uncomment ScreenUpdating and DisplayAlerts after ' testing) '------------------------------------------------------------------------------- On Error GoTo ErrHandler Application.ScreenUpdating = False Application.DisplayAlerts = False Application.StatusBar = ""
You need to login to post a comment.
