Hello,
i have quite a problem. I use #codeA to change sheet name with value in specified cell (to has automatic changing value in header of each page). it works.
i added some code to autohide specific rows (lets say rows 11-15 in SHEET A) by specified cell value in other sheet DATA ("yes or no"). it works.
i put both codes together, nothing works. is it because of changing name of sheet A, and then "autohide" code doesnt catch correct sheet? please help if anyone can, i quite new to vba and dont know hot to solve this... dont have any code for the moment for autohide code
#CODE for changing sheet name (found in vba forums; working)
Private Sub Worksheet_Change(ByVal Target As Range)
Set Target = Range("G5")
If Target = "" Then Exit Sub
Application.ActiveSheet.Name = VBA.Left(Target, 31)
Exit Sub
End Sub
Bookmarks