Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Custom VBA Drop Downs

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......

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Custom VBA Drop Downs

and actually...some of them WILL be in different worksheets... :/

On Nov 14, 4:35 pm, "Nigel" 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......


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Custom VBA Drop Downs

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
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
Creating drop downs in a cell contingent on another drop down Keeprogoal[_2_] Excel Discussion (Misc queries) 1 March 24th 09 04:37 PM
drop downs Mick Excel Discussion (Misc queries) 2 May 11th 08 05:16 PM
Drop Downs Excel Monkey Excel Discussion (Misc queries) 1 June 6th 07 06:30 PM
drop downs nanpenguin Excel Discussion (Misc queries) 2 February 3rd 06 11:27 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 06:30 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"