Ian Betteridge
Active Member
- Joined
- Mar 25, 2006
- Messages
- 472
Good Evening,
I have some code which was kindly supplied via this forum.
Private Sub Workbook_Open()
If Month(Date) > 1 Or Day(Date) >= 7 Then
With Sheets("wkssystemA2").Range("B64").Resize(1, Month(Date) - IIf(Day(Date) < 7, 1, 0))
.Value = .Value
End With
End If
End Sub
I now want this code to apply to all cells in the range CB3:CM59 and not cell B64.
Is this possible? If yes, what will the code become?
Regards Ian
I have some code which was kindly supplied via this forum.
Private Sub Workbook_Open()
If Month(Date) > 1 Or Day(Date) >= 7 Then
With Sheets("wkssystemA2").Range("B64").Resize(1, Month(Date) - IIf(Day(Date) < 7, 1, 0))
.Value = .Value
End With
End If
End Sub
I now want this code to apply to all cells in the range CB3:CM59 and not cell B64.
Is this possible? If yes, what will the code become?
Regards Ian