Hi Experts,
I am using the code below to find the last row. I am having a problem and would like to modify it so that the code is restricted to search only columns A to M. I have data in columns beyond M and and that creating problems finding the last row. Dr. Google hasn’t provided any help. I am using a header.
Private Sub CmdEnterData_Click()
Dim iRow As Long
Dim ws As Worksheet
Dim wb As Workbook
Set wb = ThisWorkbook
Set ws = wb.Worksheets(“Sheet1″)
iRow = ws.Cells.Find(What:=”*”, SearchOrder:=xlRows, SearchDirection:=xlPrevious, LookIn:=xlValues).Row + 1