LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Choosing a drop-down menu selection returns value to another cell

Version: Excel 2003

I have a worksheet that is referencing the value of the active cell. The
point is to provide users with dynamic details of the project they currently
have selected (active cell). I have the following worksheet code to return
the value of the active cell to A1 and the row# of the active cell to A2.
Lookup formulas search a database for detail matches on the value of the
active cell.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Range("A1") = Target.Value
Range("A2") = Target.Row
End Sub

The range A20:A500 has data validation to allow a list located in another
worksheet. The code to return the row of the active cell works fine, but the
value of the active cell is not returned to A1 when I select from the
drop-down menu. It is only returned once I leave that active cell and come
back to it. In other words, it is not dynamically returning the value of the
active cell when the value of the active cell changes from blank to a
selection from the drop-down list. It is only dynamic when toggling the
active cell between non-blank cells.

Ideally, I would like the code to return the value of the active cell to A1
as soon as the drop-down selection is made, before leaving the active cell.
I'm not sure if this is considered an event.

The worksheet event is Selection_Change. Is returning an offset value of
the row # an option?

Thank you,
Mica
 
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
Automatic Return When Choosing Drop Down Menu Sleection lean cost man Excel Programming 2 July 7th 08 02:21 PM
Drop dwn menu. Formula to count selection frm menu in anoth cell? ggoldber Excel Worksheet Functions 1 June 4th 08 02:21 PM
Populate Multiple cells when choosing one selection from drop down MMANDIA Excel Discussion (Misc queries) 9 December 3rd 07 11:54 AM
if selection from drop down menu = X, then... [email protected] Excel Programming 1 December 15th 06 12:31 AM
Drop down that returns to the last selection and can be formated. Husker87 Excel Discussion (Misc queries) 1 September 19th 06 02:13 AM


All times are GMT +1. The time now is 01:55 AM.

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"