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 / General Excel Questions / March 2008

Tip: Looking for answers? Try searching our database.

Set a variable to the active cell

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Richard - 24 Mar 2008 18:34 GMT
OS: MS XP, Excel 2003

I have a table and using relative addressing to read down column B.
I can select the cell and make it active but don't know how to assign the
cell value to the variable.

The cell starts with B3 and goes down.  B3, B4, B5 etc.  The value is a date.

I need to know how to read the cell value from the active cell.  I know how
to do it by saying B3 but don't know how to do it without the B3 which I
don't know as I am using relative addressing.
Thanks in advances.
Signature

Richard--
Richard

Bob Phillips - 24 Mar 2008 18:42 GMT
For Each cell In Range(Range("B3"),Range("B3").End(xlDown)

       cell.Value = ????
   Next cell

does what I think you are asking

Signature

---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

> OS: MS XP, Excel 2003
>
[quoted text clipped - 10 lines]
> don't know as I am using relative addressing.
> Thanks in advances.
 
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.