![]() |
#2
|
||||
|
||||
![]()
Your code is filling the values which show in the list. It isn't setting the default value because you haven't asked it to.
You set the default by populating the value after the list is applied Code:
Private Sub UserForm_Initialize() Dim myPrefixes() As String myPrefixes = Split(" |Mr. |Ms. |Dr.", "|") Prefix1.List = myPrefixes Prefix1 = "Mr. " End Sub
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
Tags |
vba combobox |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
VBA-User | Excel Programming | 4 | 01-07-2016 02:46 AM |
Run Time Error '91': Object variable or With block variable not set using Catalogue Mailmerge | Berryblue | Mail Merge | 1 | 11-13-2014 05:36 PM |
![]() |
Deepa Shrestha | Word VBA | 1 | 09-29-2013 09:30 PM |
![]() |
ll4u76 | Word VBA | 1 | 04-13-2012 03:37 AM |
![]() |
Billy_McSkintos | Word VBA | 1 | 09-13-2011 05:50 AM |