detweiler
Board Regular
- Joined
- Aug 2, 2013
- Messages
- 62
So, I had submitted an earlier post, Macro to hide rows ad hoc, in which Peter_SSs helped by supplying me with the following...
I have found that the worksheet is becoming rather cumbersome and thought it may be easier to hide the rows prior to a specified date. I skulked around the interwebs and found partial references, including here, but nothing I could make useable allowing me to still use of input box to enter the date I want to compare the dates is column D and hiding all but the first two rows prior to that date.
Appreciate the time and look forward to the comments and suggestions.
Sub Hide_Rows()
Dim sRws As String
sRws = InputBox("Enter rows to be hidden, separated by a colon. eg 5:25 or for a single row just 3")
On Error Resume Next
Rows(sRws).Hidden = True
On Error GoTo 0
End Sub
I have found that the worksheet is becoming rather cumbersome and thought it may be easier to hide the rows prior to a specified date. I skulked around the interwebs and found partial references, including here, but nothing I could make useable allowing me to still use of input box to enter the date I want to compare the dates is column D and hiding all but the first two rows prior to that date.
Appreciate the time and look forward to the comments and suggestions.