I am running a Find Method and need help skipping over the headings in my spreadsheet. Partial Code is Below. I want to make the Find method skip over Row 2 (which is the heading row for a table). I considered using the "After" varient for the Find Method (Find(What, After, LookIn etc)) however I can't seem to get it to work. Any help would be much appreciated.
[vba]Dim ws As Worksheet, myvar As String, val1 As Range
Dim val2 As Range, tmp As Range, cnt As Integer
cnt = 0
myvar = InputBox("Please Enter a Keyword:")
If myvar = "" Then Exit Sub
For Each ws In ThisWorkbook.Worksheets
Set val1 = ws.Cells.Find(What:=myvar, LookIn:=xlValues, Lookat:=xlPart, MatchCase:=False)
If Not val1 Is Nothing Then
cnt = cnt + 1
Application.Goto val1
ActiveCell.EntireRow.Select
Selection.Copy
Worksheets("Home").Select
Range("A1").Select
Selection.End(xlDown).Offset(1, 0).Select
ActiveSheet.Paste[/vba]
Thank You!
~Maggie