#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Pick Lists

Here is a way to add it as Data Validation in VBA

With Selection.Validation
.Delete
.Add Type:=xlValidateList, _
AlertStyle:=xlValidAlertStop, _
Operator:=xlBetween, _
Formula1:="Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct,
Nov, Dec"
End With

--

HTH

RP

"Budget Programmer" wrote in
message ...
Hello,
I'd like to make a pick list of months (Jan, Feb, Mar, etc.) for the user

to
choose from, capture the choice and use the variable. It seems that I can
use a form and the ComboBox ActiveX control, but I'm wondering if there is

a
way I can do this in VBA, without a seperate form. Thanks very much for

your
help.
--
Programmer on Budget



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
Pick from lists rbrickl Excel Discussion (Misc queries) 1 July 27th 06 12:16 AM
Pick from lists rbrickl Excel Worksheet Functions 1 July 26th 06 12:28 AM
How do I use an IF statement to pick between two lists? Spatton17569 Excel Discussion (Misc queries) 1 November 10th 05 02:31 PM
Using Pick Lists Awetronics Excel Worksheet Functions 2 November 2nd 04 09:06 AM
Pick Lists cmart02[_2_] Excel Programming 0 September 22nd 04 11:45 AM


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