Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 188
Default Calling (Function?) from Userform_Initialize to generate list of unique values for Combo box

"keepITcool" wrote in message
...

Alan,

Define your variable in a normal module
the module CAN have the option private module

Public Dim g_uni_items as collection

Public Function GetUnique(AllCells As Range, Cell As Range) as
Collection
Dim Brands_Unique As New Collection
Dim i As Integer, j As Integer
'...
set GetUnique = Brands_Unique
end Function

Then in your form or or in somewhere where you need to build the
brand list..

set g_uni_items=GetUniques(Range("a1:a100")

hth


--
keepITcool
www.XLsupport.com | keepITcool chello nl | amsterdam



Thanks for that - I will have a play!

Alan.




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
Generate alphanumeric unique 4 digit values from 12 digit values mikep Excel Worksheet Functions 5 February 9th 07 08:59 PM
Need to generate random values from a list Sumeet Benawra Excel Discussion (Misc queries) 2 July 13th 06 12:13 PM
How do I generate a list from a range of values robo7084 Excel Worksheet Functions 2 July 6th 06 01:48 AM
Populate combo box with unique values only sjayar Excel Discussion (Misc queries) 1 November 7th 05 07:29 AM
Configure Combo Box to Show Unique List Values Only? [email protected] Excel Programming 2 February 5th 04 02:26 PM


All times are GMT +1. The time now is 09:11 AM.

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"