Clear all cells from specified cell in Excel using VBA -


good evening, have worksheet procedure:

public sub cleaning(list string)     worksheets(list).range("d5:xfd1048576").clear end sub 

it works , clear in range d5:xfd1048576, quiet unsure if solution problem. want procedure clear on right of d5 , down d5 cell.

can please me this?

your procedure not solve problem descriebed. this, need clear columns on right side of column d (that means starting e), , clear rows below 5 (that means starting row 6).

here piece of code should work:

public sub extracleaning(list string)     worksheets(list).columns("e:xfd").clear     worksheets(list).rows("6:1048576").clear end sub 

Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -