Followup on Vlookup

W

Wylie C

I have the following lines of code:

Dim datDate As Date, rngActive As Range
Set rngActive = Application.InputBox(prompt:="Click on cell",
Title:="Cells)", Type:=8)
'display rngActive
msgbox rngActive
'assign values to worksheet cells
rngActive.Value = datDate

When I click the cell for the inputbox prompt, the cell reference shows up
in the inputbox line (e.g., Sheet2!$A$2) and the date value for rngActive is
assigned that cell BUT I can't seem to capture the value of the inputbox in
the msgbox. What I want to do is GoTo the cell identified to verify the data
but since I can't pick up the cell reference from the inputbox, my cursor
stays in the original cell from when I started the procedure. Any help
appreciated. Thank you.
 
W

Wylie C

I apologize...This is an Inputbox question. Have been working with VLookup
for a while...:)
 
W

Wylie C

Tried it and got the following error msg...

Activatemethod of Range class failed.
 

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

Top