Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() 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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Cant find Macro in read only | Excel Discussion (Misc queries) | |||
macro read xml file | Excel Programming | |||
Macro to read filename in cell and open new file | Excel Programming | |||
read from 1 cell read to and other using vba | Excel Programming | |||
Macro Help. Please read... | Excel Programming |