Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Updating a dropdown list from SQL server

I have a worksheet with a drop down of active projects in one of its columns.
The data on what projects are active comes from a SQL server database. To
start the process I defined a range that includes all the imported project
data, created the drop down and copied it to the appropriate number of rows
in the Projects column.

I have the query dropping the data to an area outside of the normal viewing
area. Over time, the project mix will change, so I need to update the
dropdowns(s). I have no problem refreshing the data from the query, but seem
unable to get the range to resize in the dropdowns following the example in
the online documentation. I intentionally used a named range assuming that
would eliminate the need to go row by row to update the dropdowns.

This leads me to two questions:
1. Are the data in the dropdowns static once populated, or should resizing
the range effect the dropdowns?
2. Am I going about this whole thing correctly?

Thanks in advance for any assistance or insights.

John
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Updating a dropdown list from SQL server


Queries automatically create & maintain range names.

if you base your dropdown source on that NAME rather than the address
things should go as planned.

--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


DevalilaJohn wrote in


I have a worksheet with a drop down of active projects in one of its
columns. The data on what projects are active comes from a SQL
server database. To start the process I defined a range that
includes all the imported project data, created the drop down and
copied it to the appropriate number of rows in the Projects column.

I have the query dropping the data to an area outside of the normal
viewing area. Over time, the project mix will change, so I need to
update the dropdowns(s). I have no problem refreshing the data from
the query, but seem unable to get the range to resize in the
dropdowns following the example in the online documentation. I
intentionally used a named range assuming that would eliminate the
need to go row by row to update the dropdowns.

This leads me to two questions:
1. Are the data in the dropdowns static once populated, or should
resizing the range effect the dropdowns?
2. Am I going about this whole thing correctly?

Thanks in advance for any assistance or insights.

John

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
dropdown list determined by another dropdown list Wackyracer Excel Discussion (Misc queries) 5 April 27th 09 10:49 PM
Excell Dropdown List. Display alternate text than found in list. Shawnn Excel Discussion (Misc queries) 14 December 11th 08 07:43 PM
result of selecting from the dropdown list should be a dropdown list No News Excel Worksheet Functions 0 July 5th 06 04:09 PM
result of selecting from the dropdown list should be a dropdown list No News Excel Worksheet Functions 2 July 1st 06 10:53 AM
problem updating link from Novell server to windows server #REF er Ellen Excel Discussion (Misc queries) 0 May 10th 05 09:18 PM


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