tlc53
Active Member
- Joined
- Jul 26, 2018
- Messages
- 399
Hi,
I have the below coding which works fine but instead of referring to the sheet named "Cordis", I would like it to get the sheet name from cell A12 (which has "Cordis" typed in it).
I have tried
And
But neither seem to work. Can anyone see how I can get this working please? Thank you
I have the below coding which works fine but instead of referring to the sheet named "Cordis", I would like it to get the sheet name from cell A12 (which has "Cordis" typed in it).
Code:
Private Sub CommandButton1_Click()
Application.ScreenUpdating = False
Sheets("Monthly Data").Select
CleanUp
Sheets("Cordis").Select
ClientNarrative
Sheets("Dashboard").Select
Application.ScreenUpdating = True
CommandButton1.Enabled = False
End Sub
I have tried
Code:
Sheets(Range("A12")).Select
ClientNarrative
And
Code:
Call Sheets(Range("A12")).Select
ClientNarrative
But neither seem to work. Can anyone see how I can get this working please? Thank you