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 / Programming / November 2007

Tip: Looking for answers? Try searching our database.

select range

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
geebee - 21 Nov 2007 15:21 GMT
hi,

i have the following:

dim x as integer
for x = 1 to lastcol
columns(x).select
next x

i would like to know ifthere is some way i can select a particular range
instead of the whole column... like how can i amend the preceding to simulate
selecting H17?  sorta like range(H17).select

thanks in advance,
geebee
Dave Peterson - 21 Nov 2007 15:36 GMT
try
cells(17,x).select
instead of
columns(x).select

> hi,
>
[quoted text clipped - 11 lines]
> thanks in advance,
> geebee

Signature

Dave Peterson

geebee - 21 Nov 2007 16:15 GMT
hi,

thanks... so now i would lke to take the code further by changing the
conditional formatting dynamically also...
i now have...
Selection.FormatConditions.Add Type:=xlCellValue, Operator:=xlLessEqual,
Formula1:="=round(h17,3)<=$G$17.

so would i change the preceding to...
Selection.FormatConditions.Add Type:=xlCellValue, Operator:=xlLessEqual,
Formula1:="=round(x & 17,3)<=$G$17.

am i onthe right track?

thanks in advance,
geebee

> try
> cells(17,x).select
[quoted text clipped - 16 lines]
> > thanks in advance,
> > geebee
 
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.