azizrasul
Well-known Member
- Joined
- Jul 7, 2003
- Messages
- 1,304
- Office Version
- 365
- 2019
- 2016
- Platform
- Windows
I have inherited a 2007 workbook where the code has line numbers. How do I get rid of them? Here's a snippet of the code.
Code:
Private Sub Workbook_Open()
Dim bDirty As Boolean
Dim s2009Dataworkbook As String
'Set Global Variable
10 nReportingYear = Year(Now)
20 Select Case nReportingYear
Case 2010
' Include data
30 bIncludedY2009 = True
40 bIncludedY2008 = True
50 s2009Dataworkbook = DSI_2009_DataTable_FileName
60 Case 2011
70 bIncludedY2009 = True
80 bIncludedY2008 = False
90 s2009Dataworkbook = DSI_2009_DataTable_FileName
100 Case Else
110 bIncludedY2009 = False
120 bIncludedY2008 = False
130 s2009Dataworkbook = "No Longer Required; data in Dimensions"
140 End Select