Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Read cell value with a macro


I tried to record a macro to read the cell value of the active cell.
The macro recorded the actual value of the cell I had selected at the
time. So if I select a different cell and run the macro it still reads
the same constant value as when I recorded it the first time. Example:
ActiveCell.FormulaR1C1 = "212"

I want it to read the value of the cell I have selected as a variable
and not a constant. I have looked through the help files but I must
not be asking the right questions. Can anybody set me straight?


--
jbuthmann
------------------------------------------------------------------------
jbuthmann's Profile: http://www.excelforum.com/member.php...o&userid=30811
View this thread: http://www.excelforum.com/showthread...hreadid=504729

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Read cell value with a macro

Hi J,

Try:

ActiveCell.value


---
Regards,
Norman



"jbuthmann" wrote
in message ...

I tried to record a macro to read the cell value of the active cell.
The macro recorded the actual value of the cell I had selected at the
time. So if I select a different cell and run the macro it still reads
the same constant value as when I recorded it the first time. Example:
ActiveCell.FormulaR1C1 = "212"

I want it to read the value of the cell I have selected as a variable
and not a constant. I have looked through the help files but I must
not be asking the right questions. Can anybody set me straight?


--
jbuthmann
------------------------------------------------------------------------
jbuthmann's Profile:
http://www.excelforum.com/member.php...o&userid=30811
View this thread: http://www.excelforum.com/showthread...hreadid=504729



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
Cant find Macro in read only Steekvey Excel Discussion (Misc queries) 0 November 8th 06 02:52 PM
macro read xml file raisin Excel Programming 1 November 28th 05 03:09 PM
Macro to read filename in cell and open new file April Excel Programming 2 July 27th 05 02:49 PM
read from 1 cell read to and other using vba Henrik[_4_] Excel Programming 1 December 25th 03 06:15 PM
Macro Help. Please read... Laura90210 Excel Programming 6 November 11th 03 09:40 PM


All times are GMT +1. The time now is 09:34 AM.

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

About Us

"It's about Microsoft Excel"