Certificates!
Member
I have a workbook which will eventually have about 100 worksheets.
The sheets are all exact copies of each other, though the data is different.
These two macros are currently on the first few worksheets. Is it possible to come up with something that I can put on the first page instead of doing each page separately.
I know very little about this at all and had to google to find the two I have below:
The sheets are all exact copies of each other, though the data is different.
These two macros are currently on the first few worksheets. Is it possible to come up with something that I can put on the first page instead of doing each page separately.
I know very little about this at all and had to google to find the two I have below:
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count = 1 Then
If Not Intersect(Target, [F3]) Is Nothing Then
Select Case UCase(Target)
Case "MEDAL"
[X1].EntireColumn.Hidden = True
[AB1].EntireColumn.Hidden = False
[AE1].EntireColumn.Hidden = True
Case "STABLEFORD"
[X1].EntireColumn.Hidden = False
[AB1].EntireColumn.Hidden = True
[AE1].EntireColumn.Hidden = True
Case "PAR"
[X1].EntireColumn.Hidden = True
[AB1].EntireColumn.Hidden = True
[AE1].EntireColumn.Hidden = False
Case Else
[X1].EntireColumn.Hidden = False
[AB1].EntireColumn.Hidden = False
[AE1].EntireColumn.Hidden = False
End Select
End If
End If
End Sub
Sub Hide_Columns()
Range("I:J,N:W, Y:AA,AC:AD").EntireColumn.Hidden = True
End Sub