how to access column 8 in my Range

  • Thread starter Thread starter rpsmith123
  • Start date Start date
R

rpsmith123

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
 
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

If LegendList is a named range in your workbook, which I'm assuming it
is, you need to reference it using Range. Something like this.
Range("legendlist").Cells(, 8) = "1"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top