[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Private
  • Views: 27
  • Last Modified:

VBA: Best way to clear contents for multiple columns starting with 2nd row, and all the way down

What's the most efficient way to write the code to clear contents for multiple columns, let's say A through D, starting with 2nd row, and all the way down? Thanks
0
Dmitriy Kritskiy
Asked:
Dmitriy Kritskiy
1 Solution
 
gplanaCommented:
I think best way is:

Sheets("Test").Rows("2:65535").Delete
0
 
Anthony BerenguelCommented:
Try
    Application.Goto Reference:="R2C1:R2C4" 'where R is row and C is column. 
    Range(Selection, Selection.End(xlDown)).Select
    Selection.ClearContents

Open in new window

0
 
Dmitriy KritskiyAuthor Commented:
Perfect!
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now