how to access column 8 in my Range

  • Thread starter Thread starter rpsmith
  • Start date Start date
R

rpsmith

Hi,

I want to place "1" in column 8 in every row in my range named
"LegendList". How do I do this?

I tried:

LegendList(, 8) = "1"

and I tried

With LegendList
.Cells(, 8) = "1"
end with

Neither works...
Help...please
Thanks,
Paul
 
try this to put the number 1 in each cell

Sub oneinrange()
Range("legendlist") = 1
End Sub

or 8 columns over
Sub oneinrange()
Range("legendlist").Offset(, 8) = 1
End Sub
 
Back
Top