View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Mike H Mike H is offline
external usenet poster
 
Posts: 11,501
Default 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