#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default combo box

How can i add a combo box in every cell of a colum?
The column "A" is "Department" and i want to be sure that in the cell(x,1)
will be prompted a combo box with the possibile values (0001, 02b, 03hj,
04jk)


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 55
Default combo box

Maga Circe,

Have you considered using Data Validation instead? Based on your
description it will do what you want much more easily. If you're
interested, look it up in Help.

hth,

Doug

"Maga Circe" wrote in message
...
How can i add a combo box in every cell of a colum?
The column "A" is "Department" and i want to be sure that in the
cell(x,1) will be prompted a combo box with the possibile values (0001,
02b, 03hj, 04jk)



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default combo box

Hi!

Try this one, its only a recorder macro but ......

Sub ValidationList()
' first cell in column
Range("A4").Select
' area selection (first cell to last cell)
Range(Selection, Selection.End(xlDown)).Select
With Selection.Validation
.Delete
' add validate list all cells
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="=$D$4:$D$7"
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = ""
.ErrorTitle = ""
.InputMessage = ""
.ErrorMessage = ""
.ShowInput = True
.ShowError = True
End With
End Sub

Regards
Kari J Keinonen
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
combo reference on another combo box for picking address etc. kbjin Excel Worksheet Functions 1 December 8th 06 03:29 PM
Excel VBA Combo Box Populating dependent on other combo box choices ikabodred Excel Programming 1 March 15th 06 03:16 PM
Filtered list for Combo Box ListFillRange - Nested Combo Boxes DoctorG Excel Programming 3 February 23rd 06 12:15 PM
"Combo Box - getting control combo box to stick in place in worksh ajr Excel Discussion (Misc queries) 1 February 16th 05 02:05 AM
"Combo Box - getting control combo box to stick in place in worksh ajr Excel Discussion (Misc queries) 0 February 15th 05 07:45 PM


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