PC Review


Reply
Thread Tools Rate Thread

Custom VBA Drop Downs

 
 
Nigel
Guest
Posts: n/a
 
      15th Nov 2006
ok .... so i need to make a custom drop down....

the actual drop down will be nowhere near the data that it is pulling
from (although it will be in the same sheet) so standard list, or
autofilter options are out....

the dropdown needs to list only unique names in a given range

and the range needs to be determined by variables...ie Range("A" & LPS
& ":F" & LPE)
where LPS and LPE are variable row numbers.....

im banging my head against a wall to figure this out......

 
Reply With Quote
 
 
 
 
Nigel
Guest
Posts: n/a
 
      15th Nov 2006
and actually...some of them WILL be in different worksheets... :/

On Nov 14, 4:35 pm, "Nigel" <horror1...@gmail.com> wrote:
> ok .... so i need to make a custom drop down....
>
> the actual drop down will be nowhere near the data that it is pulling
> from (although it will be in the same sheet) so standard list, or
> autofilter options are out....
>
> the dropdown needs to list only unique names in a given range
>
> and the range needs to be determined by variables...ie Range("A" & LPS
> & ":F" & LPE)
> where LPS and LPE are variable row numbers.....
>
> im banging my head against a wall to figure this out......


 
Reply With Quote
 
Nigel
Guest
Posts: n/a
 
      16th Nov 2006
so i actually made some progress.....

With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop,
Operator:= _
xlBetween, Formula1:="=A7:A" &
Range("EndOfProducts").Offset(-1, 0).Row
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = ""
.ErrorTitle = ""
.InputMessage = ""
.ErrorMessage = ""
.ShowInput = True
.ShowError = False

so you can see that the range of my validation data is populated by
variables...which is working great...

the problem is...i need to edit it so that my drop down only shows
unique items, and omits any blank cells....

is this possible?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i create custom drop downs for my template Rob Dougherty Microsoft Word Document Management 2 24th Feb 2010 07:04 AM
Creating drop downs in a cell contingent on another drop down Keeprogoal Microsoft Excel Misc 1 24th Mar 2009 04:37 PM
Multiple drop downs in custom user control jmawebco Microsoft C# .NET 0 10th Apr 2006 08:33 PM
Cross-referenced drop-down menu (nested drop-downs?) =?Utf-8?B?Y3JlYXRpdmVvcHM=?= Microsoft Excel Worksheet Functions 4 22nd Nov 2005 05:41 PM
The drop down form field is not showing drop downs. Why? =?Utf-8?B?bWluZHlzdWU=?= Microsoft Word Document Management 1 26th May 2005 09:43 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:04 AM.