marcop2906
New Member
- Joined
- Mar 2, 2022
- Messages
- 2
- Office Version
- 2016
- Platform
- Windows
Hello everyone, I'm new in the forum and also in the VBA world of excel. I am looking for a method to close a specific group row (the group already exists), on two separate sheets. The row number is calculated in the cells of the respective sheets (respectively AU7 and B1). Using these code syntax always gives me error. I would like to ask for your help, thank you
VBA Code:
Sub closeLastRow()
Dim X As String
X = Range("AU7").Value
Rows(X).EntireRow.ShowDetail = False
End Sub
VBA Code:
Sub closeLastRowSintesi()
Dim X As String
X = Range("B1").Value
Rows(X).EntireRow.ShowDetail = False
End Sub