PC Review


Reply
Thread Tools Rate Thread

ComboboxStart item

 
 
alvin Kuiper
Guest
Posts: n/a
 
      11th May 2009
Hi I use:
Dim getmedia As Range
Set getmedia = Sheets("Beregn").Range("media")
For Each d In getmedia
cbo_medie.AddItem d.Value
Next

How can i show the first item in the box, and not a empty line?

Alvin

 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      11th May 2009
Dim getmedia As Range
Set getmedia = Sheets("Beregn").Range("media")
For Each d In getmedia
cbo_medie.AddItem d.Value
Next
cbo_medie.Listindex = 0


--
__________________________________
HTH

Bob

"alvin Kuiper" <(E-Mail Removed)> wrote in message
news:8A726C8B-F0D8-4930-A0E4-(E-Mail Removed)...
> Hi I use:
> Dim getmedia As Range
> Set getmedia = Sheets("Beregn").Range("media")
> For Each d In getmedia
> cbo_medie.AddItem d.Value
> Next
>
> How can i show the first item in the box, and not a empty line?
>
> Alvin
>



 
Reply With Quote
 
Jacob Skaria
Guest
Posts: n/a
 
      11th May 2009
cbo_medie.Listindex = 0 will set that to the first entry

cbo_medie.Listindex = -1 will set that to blank


If this post helps click Yes
---------------
Jacob Skaria


"alvin Kuiper" wrote:

> Hi I use:
> Dim getmedia As Range
> Set getmedia = Sheets("Beregn").Range("media")
> For Each d In getmedia
> cbo_medie.AddItem d.Value
> Next
>
> How can i show the first item in the box, and not a empty line?
>
> Alvin
>

 
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
dictionary->(item, item, item); Can dictionary point to an array inVBA? cate Microsoft Excel Programming 1 6th Mar 2010 10:15 PM
sub item in list view item invalid bounds during DrawItem in owner draw Smokey Grindle Microsoft VB .NET 0 2nd Aug 2006 05:24 PM
Error message:Unable to display the selected folder or item. Could not open the item Don Microsoft Outlook 1 25th Jan 2005 09:45 PM
Highlighting the selected item in a combo box by making the item displayed in Bold characters. doyapore Microsoft Access 1 19th Jan 2005 02:49 PM
Can't open this item. The property does not exist. The field you want to modify is not valid for this type of item. R Farquhar, Texas Microsoft Outlook Discussion 1 11th Jun 2004 05:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:33 PM.