Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Followup on Vlookup

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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Followup on Vlookup

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

"Wylie C" wrote:

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.

  #3   Report Post  
Posted to microsoft.public.excel.programming
JNW JNW is offline
external usenet poster
 
Posts: 480
Default Followup on Vlookup

try adding the following before the display message
rngActive.activate

"Wylie C" wrote:

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.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Followup on Vlookup

Tried it and got the following error msg...

Activatemethod of Range class failed.

"JNW" wrote:

try adding the following before the display message
rngActive.activate

"Wylie C" wrote:

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.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Followup on Format a Ratio USD305 Excel Discussion (Misc queries) 1 April 10th 08 09:22 PM
Followup: Folder listing [email protected] Excel Discussion (Misc queries) 1 February 23rd 07 02:23 AM
countif followup Lee Harris Excel Worksheet Functions 3 November 16th 05 06:13 AM
Followup question for Tom Marty Excel Programming 2 March 6th 05 07:55 PM
Followup to Excel OLE Error VanS[_2_] Excel Programming 0 September 16th 04 09:15 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"