Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Puting data from an input box in two cells
I have an input box that askes the user for a figure. I want that figure
to go into the active cell and also into another cell (O2), but I don't want to "Select" the other cell. I want the active cell to remain where it is because the macro does some other things from that location (offsets etc.) Here is where I get the figure.... AmtPaid = InputBox("Amount Paid?") ActiveCell = -AmtPaid ' Negative Amount Now I want to take whatever is input there and also put it into cell O2 (without actually selecting O2) Thanks for any help you great guys can give me. Jonco |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Puting data from an input box in two cells
AmtPaid = InputBox("Amount Paid?")
ActiveCell = -AmtPaid ' Negative Amount Range(")2") = -AmtPaid ' should do it. -- Best wishes, Jim "jonco" wrote: I have an input box that askes the user for a figure. I want that figure to go into the active cell and also into another cell (O2), but I don't want to "Select" the other cell. I want the active cell to remain where it is because the macro does some other things from that location (offsets etc.) Here is where I get the figure.... AmtPaid = InputBox("Amount Paid?") ActiveCell = -AmtPaid ' Negative Amount Now I want to take whatever is input there and also put it into cell O2 (without actually selecting O2) Thanks for any help you great guys can give me. Jonco |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Puting data from an input box in two cells
Pardon the typo in the first response. I tried it and it worked for me.
AmtPaid = InputBox("Amount Paid?") ActiveCell = -AmtPaid ' Negative Amount Range("O2") = -AmtPaid ' should do it. -- Best wishes, Jim "jonco" wrote: I have an input box that askes the user for a figure. I want that figure to go into the active cell and also into another cell (O2), but I don't want to "Select" the other cell. I want the active cell to remain where it is because the macro does some other things from that location (offsets etc.) Here is where I get the figure.... AmtPaid = InputBox("Amount Paid?") ActiveCell = -AmtPaid ' Negative Amount Now I want to take whatever is input there and also put it into cell O2 (without actually selecting O2) Thanks for any help you great guys can give me. Jonco |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Puting data from an input box in two cells
Perfect. Thanks!
"jonco" wrote in message . net... I have an input box that askes the user for a figure. I want that figure to go into the active cell and also into another cell (O2), but I don't want to "Select" the other cell. I want the active cell to remain where it is because the macro does some other things from that location (offsets etc.) Here is where I get the figure.... AmtPaid = InputBox("Amount Paid?") ActiveCell = -AmtPaid ' Negative Amount Now I want to take whatever is input there and also put it into cell O2 (without actually selecting O2) Thanks for any help you great guys can give me. Jonco |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
input data dependent on other cells | Excel Worksheet Functions | |||
specify a range of cells for data input, down then over | Excel Discussion (Misc queries) | |||
Data input in cells | Excel Discussion (Misc queries) | |||
Msgbox - Puting current date in a message box | Excel Programming | |||
how can deactive cells to input data | Excel Programming |