Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Programmatically query Excel drop-down list ?

Can I programmatically query an Excel drop-down list and programmatically
update the drop-down cell ?
I am trying to populate one spreadsheet with data from another using an Excel
macro, but one column contains drop-down boxes. Can I query the drop-down
list from my controlling macro and populate the cell with one of the entries.

Thanks in anticipation.

--
Message posted via http://www.officekb.com
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Programmatically query Excel drop-down list ?

Are you talking about data = Validation using the list option.


If so, do you know where the data is that is used to populate the list? If
so, just get a value from that. Data validation doesn't react to entries
made by code.

--
Regards,
Tom Ogilvy


"diglas1 via OfficeKB.com" wrote:

Can I programmatically query an Excel drop-down list and programmatically
update the drop-down cell ?
I am trying to populate one spreadsheet with data from another using an Excel
macro, but one column contains drop-down boxes. Can I query the drop-down
list from my controlling macro and populate the cell with one of the entries.

Thanks in anticipation.

--
Message posted via http://www.officekb.com

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Programmatically query Excel drop-down list ?

Tom,
Yes re Data == Validation.
Thanks for your response; unfortunately, when I select the drop-down "List"
cell, then Data from the toolbar, the Validation option is greyed out. I
know the workbook is unprotected as the formulae for all cells are visible,
so presume it's not a security issue.
Could the source for the drop-down list box be created and it's whereabouts
protected somehow in a macro ? (the macros for this spreadsheet are greyed
out, so must be protected.)
Thanks


Tom Ogilvy wrote:
Are you talking about data = Validation using the list option.

If so, do you know where the data is that is used to populate the list? If
so, just get a value from that. Data validation doesn't react to entries
made by code.

Can I programmatically query an Excel drop-down list and programmatically
update the drop-down cell ?

[quoted text clipped - 3 lines]

Thanks in anticipation.


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200606/1
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
Drop down list query SD125 Excel Discussion (Misc queries) 2 July 10th 08 08:30 PM
Drop down list query fullers Excel Programming 1 May 10th 06 05:34 PM
multiple select from the drop down list in excel. list in one sheet and drop down in sriramus Excel Discussion (Misc queries) 5 October 27th 05 06:55 PM
programmatically open excel from asp with web query url loaded cindy Excel Programming 0 September 17th 04 12:29 AM
Is it possible to programmatically add a multi-column list box or drop down box to a sheet? rotor Excel Programming 1 May 3rd 04 09:31 PM


All times are GMT +1. The time now is 09:48 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"