You'll need a method for finding the lastrow that does not use .End(xlUp) method if you want to work even on hidden rows.
Public Sub AddAcct()
Dim X As String, Message As String, NextRow As Long
Message = "Enter the Account Name you want to add:"
TitleBarTxt = "Add New Account"
DefaultTxt = " "
NextRow = Cells.Find("*", Cells(Rows.Count, Columns.Count), SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row + 1
X = Application.InputBox(Message, TitleBarTxt, DefaultTxt, Type:=2)
If X <> "" And X <> "False" Then
Worksheets("Accounts").Range("A" & NextRow) = X
End If
End Sub
Bookmarks