Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Addding a combobox to a workbook?

Hello,

I've built some VBA code that builds a seperate workbook for each
agency to show their data.

However, I want to add a dropdown field in column K in which the user
can select a reason code from a list. This list of reason codes should
be in a seperate worksheet called "reason codes"

Can this be down with validation?

Thanks
Brian

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 221
Default Addding a combobox to a workbook?

Sure. Try this:
http://www.officearticles.com/excel/...soft_excel.htm
*******************
~Anne Troy

www.OfficeArticles.com
www.MyExpertsOnline.com


"BerkshireGuy" wrote in message
oups.com...
Hello,

I've built some VBA code that builds a seperate workbook for each
agency to show their data.

However, I want to add a dropdown field in column K in which the user
can select a reason code from a list. This list of reason codes should
be in a seperate worksheet called "reason codes"

Can this be down with validation?

Thanks
Brian



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default Addding a combobox to a workbook?

Validation is absolutely correct. My recommendaion is to create a named range
(call it something novel like ReasonCodes) on your Reason Codes sheet. Now
select
Data - Validation - List
In the List box add =ReasonCodes

That should do it...
--
HTH...

Jim Thomlinson


"BerkshireGuy" wrote:

Hello,

I've built some VBA code that builds a seperate workbook for each
agency to show their data.

However, I want to add a dropdown field in column K in which the user
can select a reason code from a list. This list of reason codes should
be in a seperate worksheet called "reason codes"

Can this be down with validation?

Thanks
Brian


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Addding a combobox to a workbook?

Hi BerkshireGuy,

If the validation list is in a different worksheet, give the list a name and
use the name in the data validation's source box.


---
Regards,
Norman



"BerkshireGuy" wrote in message
oups.com...
Hello,

I've built some VBA code that builds a seperate workbook for each
agency to show their data.

However, I want to add a dropdown field in column K in which the user
can select a reason code from a list. This list of reason codes should
be in a seperate worksheet called "reason codes"

Can this be down with validation?

Thanks
Brian



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
HELP PLEASE..Inserting combobox (ActiveX control) makes workbook c Inquiringmind Excel Discussion (Misc queries) 0 February 10th 07 11:01 AM
Addding a Random number to a fixed number..... Dermot Excel Discussion (Misc queries) 6 August 20th 06 12:17 PM
How to Set VB ComboBox ListFillRange to a Defined Range in an external workbook Ken[_24_] Excel Programming 1 January 12th 05 04:28 PM
filling a combobox (without being prompted to save the workbook EVERY time its opened neowok[_34_] Excel Programming 2 March 1st 04 03:39 PM
Referencing a ComboBox control from a Workbook Object? debartsa Excel Programming 3 December 9th 03 08:43 PM


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