Hi am using the below VBA but somehow I am not able to fix the issue. Basically I try to capture Row formula of excel to count the number of row and return that value in a declared variable in VBA
Sub Macro1()
Dim x As Integer
Dim y As Integer
Dim z As Integer
z = WorksheetFunction.row(ClusterQuery)
End Sub
ClusterQuery is NameRange I am using.