Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / May 2008

Tip: Looking for answers? Try searching our database.

how to access column 8 in my Range

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rpsmith - 21 May 2008 17:47 GMT
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
Don Guillett - 21 May 2008 18:51 GMT
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

Signature

Don Guillett
Microsoft MVP Excel
SalesAid Software
dguillett1@austin.rr.com

> Hi,
>
[quoted text clipped - 15 lines]
> Thanks,
> Paul
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.