Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50117

Clear Contents of a column in a range variable

$
0
0
im sure this is easy but I cant figure it out.
I have a range variable named data I want to clear all the data in the 3rd column in the range variable I know how to reference a single location in the range variable but not a whole column. see example code below
Code:

Dim data as Range
Set data = Range("A1:D20").Value
data(1,3) = ""  'how would I change that so that all of the 3rd column is nothing

thanks for any help on this.
JD

Viewing all articles
Browse latest Browse all 50117

Trending Articles