Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default set up drop dpwn using VBA

I'm building a spreadsheet from within Access/VBA. I export my data into a
spreadsheet template, format some of the cells, unlock others, protect the
sheet then save it with a unique name (and later email it). I'm doing fine up
till this point: using Access/VBA I want to set up some of the cells to only
accept input from a drop down. There will only be 2 allowable values and, as
these worksheets are going to end-users, I'm trying to keep as much of the
complexity as possible within Access.

Any ideas? TIA......
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 897
Default set up drop dpwn using VBA

Check out Excel's Validation Object.

http://msdn.microsoft.com/en-us/libr...ice.11%29.aspx

--JP

On Nov 9, 5:28*pm, J. Freed wrote:
I'm building a spreadsheet from within Access/VBA. I export my data into a
spreadsheet template, format some of the cells, unlock others, protect the
sheet then save it with a unique name (and later email it). I'm doing fine up
till this point: using Access/VBA I want to set up some of the cells to only
accept input from a drop down. There will only be 2 allowable values and, as
these worksheets are going to end-users, I'm trying to keep as much of the
complexity as possible within Access.

Any ideas? TIA......


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 523
Default set up drop dpwn using VBA

Range("A1").Validation.Add xlValidateList, , , "Option1,Option2"

Sam


"J. Freed" wrote:

I'm building a spreadsheet from within Access/VBA. I export my data into a
spreadsheet template, format some of the cells, unlock others, protect the
sheet then save it with a unique name (and later email it). I'm doing fine up
till this point: using Access/VBA I want to set up some of the cells to only
accept input from a drop down. There will only be 2 allowable values and, as
these worksheets are going to end-users, I'm trying to keep as much of the
complexity as possible within Access.

Any ideas? TIA......

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
How to create 2 dependent drop down lists from 1 original drop dow Caroline Excel Discussion (Misc queries) 5 May 1st 09 02:19 PM
Drop down lists that auto create and then filter the next drop down list [email protected] Excel Worksheet Functions 2 September 30th 07 11:53 AM
controlling a form drop down based on selection of another drop down flurry[_7_] Excel Programming 1 June 5th 06 04:31 PM
drop dpwn tables in excel johnny.exe New Users to Excel 2 March 1st 06 10:39 AM
Cross-referenced drop-down menu (nested drop-downs?) creativeops Excel Worksheet Functions 4 November 22nd 05 05:41 PM


All times are GMT +1. The time now is 02:51 PM.

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"