Re: listbox

From: Frank Eller [MVP] (feNOSPAM_at_frankeller.de)
Date: 06/05/04


Date: Sat, 5 Jun 2004 16:44:27 +0200

Hi Pierre,

>
> but how can i get the first item from the list?

All items are stored in the "Items"-Property, as a list of objects. You
could do something like:

Dim s as String = CStr(lstNames.Items(0))

Regards,

Frank Eller
www.frankeller.de



Relevant Pages

  • RE: Save As in a Macro
    ... Il mio ultimo lavoro ... ... Dim s As String ... sNew As String) As String ...
    (microsoft.public.excel.programming)
  • Re: Save Excel file into PDF file............
    ... Best regards. ... "Tom Ogilvy" wrote: ... >> Dim Boring As String ... >> Dim sFilename As String ...
    (microsoft.public.excel.programming)
  • Re: Selecting multiple files and send them via email??
    ... >Here is some VBA that will work if you are using Outlook ... >Function GetAttachments(strIn As String) As String ... >Dim oApp As Outlook.Application ... >> kind regards ...
    (microsoft.public.access.formscoding)
  • Re: Header/Footer question
    ... > Dim szSheetName As String ... >> Regards. ... >> Outgoing mail is certified Virus Free. ...
    (microsoft.public.excel.printing)
  • Re: target namespace
    ... Regards ... String, ByVal strTag As String) As String ... Dim strReturn As String ... Dim objXmlNode As XmlNode ...
    (microsoft.public.biztalk.general)