Originally Posted by
firefytr
[vba]LRow = ws.Cells(Rows.Count, 3).End(xlUp).Row[/vba]
This is a good method, but not fully qualified. This is because you have a Rows reference that is not referenced to anything. Now this will work everytime if you have any workbook open, but if you use this in an addin, you may not always have an open workbook, then this line will fail you. To fully qualify, add the worksheet reference to all range references ..
[vba]LRow = ws.Cells(ws.Rows.Count, 3).End(xlUp).Row[/vba]
This code may also fail if the workbook is closed..