• Status: Solved
  • Priority: Medium
  • Security: Private
  • Views: 28
  • 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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