Can anyone tell me what's wrong with this macro.
I want the macro to hide all the rows greater or equal to ct.
Sub Macro2()
'
' Macro2 Macro
'
Dim Atest As Range
ct = Worksheets("Step One").Cells(24, "E").Value
Set Atest = Range(Worksheets("Sheet2").Cells(A, ct), Worksheets("Sheet2").Cells(A, 65536))
Atest.EntireRow.Hidden = True
End Sub
I want the macro to hide all the rows greater or equal to ct.
Sub Macro2()
'
' Macro2 Macro
'
Dim Atest As Range
ct = Worksheets("Step One").Cells(24, "E").Value
Set Atest = Range(Worksheets("Sheet2").Cells(A, ct), Worksheets("Sheet2").Cells(A, 65536))
Atest.EntireRow.Hidden = True
End Sub