Hi all,
when counting used rows, 5 will be returned, which is the last cell with data.
but when counting columns, 3 will return, which is the last blank cell. Why is it not 2?
HTML:
sn cust name
1 james
2 marry
3 eunice
4 john
5 parry
when counting used rows, 5 will be returned, which is the last cell with data.
Code:
lastblankcell = ActiveSheet.UsedRange.Rows.Count
but when counting columns, 3 will return, which is the last blank cell. Why is it not 2?
Code:
lastblankcell = ActiveSheet.UsedRange.columns.Count