Mike Welch
Board Regular
- Joined
- May 26, 2010
- Messages
- 64
- Platform
- Windows
- MacOS
Hi - I have two columns in a spreadsheet , AC and AD. AD contains error messages or a blank ("") based on an earlier function. AC is the row number that corresponds with a given error or blank.
I then sort both columns by AD (descending) and all the errors come to the top with their associated row numbers. Below the errors come all the blank lines. I know that NumberOfRows = Range("AD65536").End(xlUp).Row will find the last row but it includes the blank rows (currently identifying row 6097 even though I only have 37 errors).
I'd like to delete everything in both AC and AD after the last error so I could sort by row number making it easier to quickly locate errors for repair. Any thoughts?
Mike / WinXP Pro / Excel 2003
I then sort both columns by AD (descending) and all the errors come to the top with their associated row numbers. Below the errors come all the blank lines. I know that NumberOfRows = Range("AD65536").End(xlUp).Row will find the last row but it includes the blank rows (currently identifying row 6097 even though I only have 37 errors).
I'd like to delete everything in both AC and AD after the last error so I could sort by row number making it easier to quickly locate errors for repair. Any thoughts?
Mike / WinXP Pro / Excel 2003