Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 709
Default Set a variable to the active cell

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.
--
Richard--
Richard
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Set a variable to the active cell


For Each cell In Range(Range("B3"),Range("B3").End(xlDown)

cell.Value = ????
Next cell

does what I think you are asking

--
---
HTH

Bob


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



"Richard" wrote in message
...
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.
--
Richard--
Richard



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
set the background color of the current cell(active cell) kang New Users to Excel 2 July 31st 07 04:48 PM
referring to formula in a non active cell from active cell nickname Excel Discussion (Misc queries) 1 June 21st 07 12:11 PM
value of the active cell caroline Excel Worksheet Functions 2 June 21st 06 05:34 PM
HOW TO COPY 480 ACTIVE E-MAIL ADDRESSES CLM "G" ON AN ACTIVE EXCE. ragman10 Excel Discussion (Misc queries) 1 December 13th 04 11:52 PM
Sum to active cell GregR Excel Discussion (Misc queries) 4 December 10th 04 10:01 PM


All times are GMT +1. The time now is 05:05 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"