Kamis, 08 Maret 2012

[ExcelVBA] Re: Reading a Select Multiple List Box using Name.

 

Hi David,

Thanks for your inputs.
.text was the property i was looking for.

Nayan

--- In ExcelVBA@yahoogroups.com, "David Smart" <smartware.consulting@...> wrote:
>
> Just off the top of my head on this ,,,
>
> IIRC getting the value of a multiple select list is not useful, as it will
> at best only give you one of the selections. Actually, I seem to recall
> that it doesn't even do that properly.
>
> I think you need to work through all the items in the list and ask them
> whether they are selected or not.
>
> Google will be your best source of information.
>
> > For the following HTML code ...
>
> Remember that it's JavaScript code you're writing. There are HTML
> statements (not "code") in there as well. This might make a difference in
> your Google searches.
>
> Regards, Dave S
>
> ----- Original Message -----
> From: "nayan" <nayan1247@...>
> To: <ExcelVBA@yahoogroups.com>
> Sent: Thursday, March 01, 2012 8:39 PM
> Subject: [ExcelVBA] Reading a Select Multiple List Box using Name.
>
>
> > Hi All,
> >
> > A small query.
> >
> > For the following HTML code below for Select Multiple List Box the Display
> > and value are different. How can i choose an option by Display (05 ID or
> > 26 CN in this case).
> >
> > getElementById("vopIds").options(i),value returns the value
> > As i know only the name i want to select an option by polling for the
> > name.
> >
> > HTML Code:
> > document.getElementById('vopSelect')
> >
> > <option value="561347410">05 ID </option>
> > <option value="461505313">26 CN </option>
> >
> >
> > Any help on this would be great.
> > Thanks.
> >
> >
> >
> > ------------------------------------
> >
> > ----------------------------------
> > Be sure to check out TechTrax Ezine for many, free Excel VBA articles! Go
> > here: http://www.mousetrax.com/techtrax to enter the ezine, then search
> > the ARCHIVES for EXCEL VBA.
> >
> > ----------------------------------
> > Visit our ExcelVBA group home page for more info and support files:
> > http://groups.yahoo.com/group/ExcelVBA
> >
> > ----------------------------------
> > More free tutorials and resources available at:
> > http://www.mousetrax.com
> >
> > ----------------------------------Yahoo! Groups Links
> >
> >
> >
> >
> >
> > -----
> > No virus found in this message.
> > Checked by AVG - www.avg.com
> > Version: 10.0.1424 / Virus Database: 2113/4843 - Release Date: 02/29/12
> >
>

__._,_.___
Recent Activity:
----------------------------------
Be sure to check out TechTrax Ezine for many, free Excel VBA articles! Go here: http://www.mousetrax.com/techtrax to enter the ezine, then search the ARCHIVES for EXCEL VBA.

----------------------------------
Visit our ExcelVBA group home page for more info and support files:
http://groups.yahoo.com/group/ExcelVBA

----------------------------------
More free tutorials and resources available at:
http://www.mousetrax.com

----------------------------------
.

__,_._,___

Tidak ada komentar:

Posting Komentar