ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   use information from an input box in cell reference formula (https://www.excelbanter.com/excel-programming/417225-use-information-input-box-cell-reference-formula.html)

chas

use information from an input box in cell reference formula
 
I have an input box that promps for a row number which I then want to use in
a cell reference on a different tab. For some reason my concatenation isn't
working.

ActiveCell.FormulaR1C1 = "=PURCHASING!R[" & row & "]C[18]"

where row = the input box information

Any help is greatly appreciated.

thanks

Mike H

use information from an input box in cell reference formula
 
Maybe

response = InputBox("enter row")
ActiveCell.FormulaR1C1 = "=PURCHASING!R[" & response & "]C[18]"

Mike

"Chas" wrote:

I have an input box that promps for a row number which I then want to use in
a cell reference on a different tab. For some reason my concatenation isn't
working.

ActiveCell.FormulaR1C1 = "=PURCHASING!R[" & row & "]C[18]"

where row = the input box information

Any help is greatly appreciated.

thanks


Bob Umlas[_2_]

use information from an input box in cell reference formula
 
Works OK for me -- what's happening when you use it? (I assume there's a
worksheet named PURCHASING).


"Chas" wrote in message
...
I have an input box that promps for a row number which I then want to use
in
a cell reference on a different tab. For some reason my concatenation
isn't
working.

ActiveCell.FormulaR1C1 = "=PURCHASING!R[" & row & "]C[18]"

where row = the input box information

Any help is greatly appreciated.

thanks




chas

use information from an input box in cell reference formula
 
Still doesn't work, I've been getting a run time error every time I try.

Thanks

"Mike H" wrote:

Maybe

response = InputBox("enter row")
ActiveCell.FormulaR1C1 = "=PURCHASING!R[" & response & "]C[18]"

Mike

"Chas" wrote:

I have an input box that promps for a row number which I then want to use in
a cell reference on a different tab. For some reason my concatenation isn't
working.

ActiveCell.FormulaR1C1 = "=PURCHASING!R[" & row & "]C[18]"

where row = the input box information

Any help is greatly appreciated.

thanks


Mike H

use information from an input box in cell reference formula
 
is your relative cell off the worksheet?

"Chas" wrote:

Still doesn't work, I've been getting a run time error every time I try.

Thanks

"Mike H" wrote:

Maybe

response = InputBox("enter row")
ActiveCell.FormulaR1C1 = "=PURCHASING!R[" & response & "]C[18]"

Mike

"Chas" wrote:

I have an input box that promps for a row number which I then want to use in
a cell reference on a different tab. For some reason my concatenation isn't
working.

ActiveCell.FormulaR1C1 = "=PURCHASING!R[" & row & "]C[18]"

where row = the input box information

Any help is greatly appreciated.

thanks



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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com