LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default make selection in listbox html with vba

On 11 juil, 08:32, "Tim Williams" <timjwilliams at gmail dot com
wrote:
That HTML looks odd. There is no "language" attribute for select elements.

This should do it though:

With IE.Document.all("ucTitreRendu_DdSelDate")
.selectedIndex = 0
.onchange
End With

Tim

"Dieru" wrote in message

oups.com...
On 10 juil, 18:10, "Tim" <tim j williams at gmail dot com wrote:

It would help if you could show the complete code you're using, as well as
the relevant source from the web page.


Tim


"Dieru" wrote in message


oups.com...


- Afficher le texte des messages précédents -


Here is the code for the listbox :
<select language="javascript"
class="texteSmall" id="ucTitreRendu_DdSelDate"
style="border-style: none; width: 95%;"
onchange="__doPostBack('ucTitreRendu$DdSelDate','' )" ]=""
name="ucTitreRendu:DdSelDate"
<option value="-1"JUIN 2007 [en cours]</option
<option value="107" selected="selected"AVRIL
2007</option
</select
</td
</tr
</tbody
</table

And you already have the VBA code I am using.


Perfect Tim, thanks a lot.

 
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
Listbox selection ub Excel Discussion (Misc queries) 0 March 10th 09 06:43 PM
How to make a llistbox selection to open another listbox? Alerion Excel Programming 3 August 23rd 06 08:45 PM
Listbox & Selection sparx Excel Discussion (Misc queries) 0 July 31st 06 10:48 PM
Listbox selection Jonathan Excel Programming 4 July 27th 06 10:02 PM
deciphering html: listbox Brian Delaney Excel Programming 3 August 28th 05 06:25 PM


All times are GMT +1. The time now is 07:24 PM.

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"