Home |
Search |
Today's Posts |
|
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
VBA: How to specify 2nd cell of currently active row?
In a macro, I want to be able to set the value of the second cell of the
currently active row. How can I calculate the correct range or offset to do this? For example, if the currently active cell is An, I want to set A2 to a specific value. Thanks, Rich |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to specify 2nd cell of currently active row?
Hi Rich
For a row Cells(ActiveCell.Row, 2).Value = 100 For a column Cells(2, ActiveCell.Column).Value = 100 -- Regards Ron de Bruin http://www.rondebruin.nl "Rich" wrote in message ... In a macro, I want to be able to set the value of the second cell of the currently active row. How can I calculate the correct range or offset to do this? For example, if the currently active cell is An, I want to set A2 to a specific value. Thanks, Rich |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to specify 2nd cell of currently active row?
Thanks!
Rich "Ron de Bruin" wrote: Hi Rich For a row Cells(ActiveCell.Row, 2).Value = 100 For a column Cells(2, ActiveCell.Column).Value = 100 -- Regards Ron de Bruin http://www.rondebruin.nl "Rich" wrote in message ... In a macro, I want to be able to set the value of the second cell of the currently active row. How can I calculate the correct range or offset to do this? For example, if the currently active cell is An, I want to set A2 to a specific value. Thanks, Rich |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Row select mode to highlight active row of active cell | Excel Discussion (Misc queries) | |||
set the background color of the current cell(active cell) | New Users to Excel | |||
referring to formula in a non active cell from active cell | Excel Discussion (Misc queries) | |||
HOW TO COPY 480 ACTIVE E-MAIL ADDRESSES CLM "G" ON AN ACTIVE EXCE. | Excel Discussion (Misc queries) | |||
Select First Active Cell if the cell is in a pivot table | Excel Programming |