Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default Update cell immediately upon selection from drop down

You have one more suggestion at your other thread.

quartz wrote:

I have "Drop Down 1" on a spreadsheet (NOT an activeX) and when the user
makes a choice from the drop down I want the text from that choice to
immediately populate column "A" on the row in which the cell pointer
currently resides.

The problem is, if the user's choice already appears, then it doesn't work,
even if the user opens the drop down and closes it again (by making the same
choice) because the drop down hasn't changed. The user has to make some
other choice, then return to their original choice to get it to work.

My function is tied to the control itself. How can I get this to function
correctly? My function follows:

Public Function ControlSSDropDownChange()
'POPULATE CELL WITH SHEET CONTROL CONTENTS
Dim ctrlDD1 As ControlFormat
Set ctrlDD1 = ThisWorkbook.ActiveSheet.Shapes(pcstrDropDown1).Co ntrolFormat
Cells(ActiveCell.Row, 1) = ctrlDD1.List(ctrlDD1.ListIndex)
End Function

Thanks much in advance...


--

Dave Peterson
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
Update cell immediately upon selection from drop down gocush[_29_] Excel Programming 0 January 12th 05 01:25 AM
Update cell immediately upon selection from drop down Gary Brown[_5_] Excel Programming 0 January 12th 05 01:01 AM
Update cell selection of embedded worksheet in Word punch Excel Programming 0 August 17th 04 04:17 PM
SmartDocument: RefreshPane() doesn't update TaskPane immediately Beat Bucheli Excel Programming 1 June 8th 04 05:11 PM
Selection.Replace doesn't update the cell value in macro! Nasser Hosseini Excel Programming 1 February 26th 04 07:41 PM


All times are GMT +1. The time now is 03:52 AM.

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

About Us

"It's about Microsoft Excel"