Hi Guys!
The code I have written below is supposed to activate/select a worksheet that is standing in the range AC28 (as it should be dynamic). In this case AC28 refers to the sheet name 7.
When I try to change the sheetname of sheet '7' to the value of N1 it does not work.
Can anyone help me out how to change the sheetname from to the value of N1?
(At the moment even the selecting/activating of the sheet does not work, and it has to be dynamic)
Thank you guys so much!
The code I have written below is supposed to activate/select a worksheet that is standing in the range AC28 (as it should be dynamic). In this case AC28 refers to the sheet name 7.
When I try to change the sheetname of sheet '7' to the value of N1 it does not work.
Code:
Sub Macro2()
'
' Macro2 Macro
'
'
Sheets(Range("AC28").Value).Select
ActiveSheet.Name = ActiveSheet.Range("N1")
End Sub
(At the moment even the selecting/activating of the sheet does not work, and it has to be dynamic)
Thank you guys so much!