I have the following macro which is a "Workbook_Open" event:
But each time it is opened it adds this page. How do I write it so that if the page "Version Notes" already exists, to skip this macro?
Thanks for your help in advance.
Code:
Sheets("Data").Select
If Sheets("Data").Range("F4").Value = "TTC.INP" Then
Sheets("Companies").Select
Sheets.Add
ActiveSheet.Name = "Version Notes"
ActiveWorkbook.Sheets("Version Notes").Tab.ColorIndex = 8
Range("A1:O388").Select
Selection.Locked = False
Selection.FormulaHidden = False
ActiveWindow.ScrollWorkbookTabs Position:=xlFirst
Sheets("Data").Select
End If
But each time it is opened it adds this page. How do I write it so that if the page "Version Notes" already exists, to skip this macro?
Thanks for your help in advance.