Should be able to do the following syntax
Code:ActiveSheet.Rows(5).EntireRow.Hidden = False
Sub UnhideRow()
Dim RowNum As String
RowNum = InputBox("What row number do you want to unhide?")
If Len(RowNum) = 0 Then
' Nothing was entered... do nothing
ElseIf RowNum Like "*[!0-9]*" Or RowNum = "0" Then
MsgBox "Invalid row number!", vbCritical
Else
Rows(RowNum).Hidden = False
End If
End Sub
Give this macro a try...
Code:Sub UnhideRow() Dim RowNum As String RowNum = InputBox("What row number do you want to unhide?") If Len(RowNum) = 0 Then ' Nothing was entered... do nothing ElseIf RowNum Like "*[!0-9]*" Or RowNum = "0" Then MsgBox "Invalid row number!", vbCritical Else Rows(RowNum).Hidden = False End If End Sub