Link to home
Start Free TrialLog in
Avatar of Jagwarman
Jagwarman

asked on

clear from current cell down not up

I am using below code when I open file which works fine if there is data but if there is no data in cell B10 it deletes the header row which in in row 9. Can this code be amended to only delete from B10 down and if there is no data in cell do nothing.

Sheets("DD MMM").Range(Range("B10"), Cells(Rows.Count, "M").End(xlUp)).Select

Thanks in advance
ASKER CERTIFIED SOLUTION
Avatar of Rgonzo1971
Rgonzo1971

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jagwarman
Jagwarman

ASKER

Thanks Rgonzo. I'm gonna miss you :-)