Input Box: Accessing values on spreadsheet

  • Thread starter Thread starter FRANK FALCO
  • Start date Start date
F

FRANK FALCO

I created an adding to perform some simple calculations by adding values
through and input box.
Is there a way to get the input box to recognize the value by clicking on a
cell???
Any help is very much appreciated.
Thanks in advance.
Frank
 
Frank

Sub grab_value()
Set dCell = Application.InputBox(prompt:= _
"Select any cell", Type:=8)
MsgBox "value is" & dCell.Value
End Sub

Gord Dibben Excel MVP
 
thank you for the help.
Gord Dibben said:
Frank

Sub grab_value()
Set dCell = Application.InputBox(prompt:= _
"Select any cell", Type:=8)
MsgBox "value is" & dCell.Value
End Sub

Gord Dibben Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top