Click here to Skip to main content
16,006,535 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: how to create dynamic pie charts in vb.net Pin
Christian Graus8-Sep-09 22:26
protectorChristian Graus8-Sep-09 22:26 
AnswerRe: how to create dynamic pie charts in vb.net Pin
0x3c09-Sep-09 0:36
0x3c09-Sep-09 0:36 
Questionplz help me to join multiple table query.... Pin
roopali gupta8-Sep-09 20:33
roopali gupta8-Sep-09 20:33 
AnswerRe: plz help me to join multiple table query.... Pin
_Damian S_8-Sep-09 20:38
professional_Damian S_8-Sep-09 20:38 
GeneralRe: plz help me to join multiple table query.... Pin
roopali gupta8-Sep-09 21:48
roopali gupta8-Sep-09 21:48 
GeneralRe: plz help me to join multiple table query.... PinPopular
Christian Graus8-Sep-09 22:27
protectorChristian Graus8-Sep-09 22:27 
AnswerRe: plz help me to join multiple table query.... Pin
εїзεїзεїз9-Sep-09 2:05
εїзεїзεїз9-Sep-09 2:05 
Questionchange value of dropdown box Pin
dodg3r78-Sep-09 10:37
dodg3r78-Sep-09 10:37 
Hi guys

I have a simple bit of code which opens up Internet Explorer, navigates to a web page, selects a value from a drop down menu (options are either "Yes" or
"No") and submits the form.

The code works fine if it is selecting "Yes" however if I change it to "No"
it dosn't work. Here is my code:

*************************************************
strURL =
"http://corporate1.internal.standardlife.com/phoneline/Phnline.nsf/frmStaffUpdate"
Set objIE = CreateObject("InternetExplorer.Application")
objIE.Navigate strURL
objIE.Visible = False

While objIE.ReadyState <> 4
wscript.sleep 300
Wend

objIE.Document.all("kwdshowphoto").Value = "Yes"

Call objIE.Document.Forms(0).Submit

objIE.Quit

***************************************************

Here is part of the source code of the internal website, which relates to
the drop down:

<table border="0" width="100%" cellspacing="0" cellpadding="0"><a
width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td class="sectionHead" width="350"><a width="1%"><img
width="359" height="1" src="/icons/ecblank.gif" border="0" alt=""><br>
My location data / PhoneLine photo</td><td class="sectionHead" ><a
width="100%"><img width="1" height="1" src="/icons/ecblank.gif" border="0"
alt=""><br>
<div align="right"><a href="javascript:PhonelineHelp();" class="globalNav"
title="launch phoneline help">Help</a> </div></td></tr>

<tr valign="top"><td width="350"><a width="1%"><img width="359" height="1"
src="/icons/ecblank.gif" border="0" alt=""><br>
</td><td ><a width="100%"><img width="1" height="1" src="/icons/ecblank.gif"
border="0" alt=""><br>
<br></td></tr>

<tr valign="top"><td class="labelText" width="350"><a width="1%"><img
width="359" height="1" src="/icons/ecblank.gif" border="0" alt=""><br>
Show my photo on Phoneline :</td><td class="dataText" ><a width="100%"><img
width="1" height="1" src="/icons/ecblank.gif" border="0" alt=""><br>
<font size="2">
<input name="%%Surrogate_kwdShowPhoto" type="hidden" value="1">
<select name="kwdShowPhoto">
<option>Yes
<option selected>No</select>
</font> </td></tr>

<tr valign="top"><td width="1%"><img width="359" height="1"
src="/icons/ecblank.gif" border="0" alt=""><br>
</td><td width="100%"><img width="1" height="1" src="/icons/ecblank.gif"
border="0" alt=""><br>
<br></td></tr>

Thanks in advance
Jamie
AnswerRe: change value of dropdown box Pin
Christian Graus8-Sep-09 11:40
protectorChristian Graus8-Sep-09 11:40 
AnswerRe: change value of dropdown box Pin
Johan Hakkesteegt8-Sep-09 21:11
Johan Hakkesteegt8-Sep-09 21:11 
GeneralRe: change value of dropdown box Pin
dodg3r78-Sep-09 22:14
dodg3r78-Sep-09 22:14 
GeneralRe: change value of dropdown box Pin
Christian Graus8-Sep-09 22:28
protectorChristian Graus8-Sep-09 22:28 
GeneralRe: change value of dropdown box Pin
dodg3r79-Sep-09 3:07
dodg3r79-Sep-09 3:07 
GeneralRe: change value of dropdown box Pin
Johan Hakkesteegt8-Sep-09 22:40
Johan Hakkesteegt8-Sep-09 22:40 
GeneralRe: change value of dropdown box Pin
dodg3r79-Sep-09 3:08
dodg3r79-Sep-09 3:08 
GeneralRe: change value of dropdown box Pin
warfdpn17-Sep-09 9:38
warfdpn17-Sep-09 9:38 
Question[solved] ObjectDisposedException - Cannot access a closed file Pin
nathan_i8-Sep-09 9:05
nathan_i8-Sep-09 9:05 
AnswerRe: ObjectDisposedException - Cannot access a closed file Pin
nathan_i8-Sep-09 10:47
nathan_i8-Sep-09 10:47 
Questionnested if statement Pin
malcomhfc8-Sep-09 8:38
malcomhfc8-Sep-09 8:38 
AnswerRe: nested if statement Pin
EliottA8-Sep-09 8:44
EliottA8-Sep-09 8:44 
GeneralRe: nested if statement Pin
malcomhfc8-Sep-09 9:05
malcomhfc8-Sep-09 9:05 
GeneralRe: nested if statement Pin
Luc Pattyn8-Sep-09 14:15
sitebuilderLuc Pattyn8-Sep-09 14:15 
QuestionVb.net Break Down Number HELP Pin
PAguilar098-Sep-09 1:48
PAguilar098-Sep-09 1:48 
AnswerRe: Vb.net Break Down Number HELP Pin
Jay Royall8-Sep-09 2:00
Jay Royall8-Sep-09 2:00 
GeneralRe: Vb.net Break Down Number HELP Pin
PAguilar098-Sep-09 2:39
PAguilar098-Sep-09 2:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.