#1   Report Post  
Posted to microsoft.public.excel.misc
mjack003
 
Posts: n/a
Default HTML values


Howdy,

I'm pretty new to extracting info from IE into excel so I need some
major help here. I need to fill certain input values on a webpage,
"click" the submit button, and from there I should be able to extract
the info I need. Its the navigating the selection screen I'm having a
problem with. The HTML values I need, I believe are contained in this
section of the source code. So how do I change these input values in
the html code to what I need and submit?

<FORM name = F001 method=post

<input name="screen_id" type="hidden"
value="Selection"
<input name="project_id_selected" type="hidden" value=""
<input name="dept_id_selected" type="hidden" value=""
<input name="missing_craft_selected" type="hidden" value=""
<input name="xl_or_html_selected" type="hidden" value="HTML"
<input name="output_format_selected" type="hidden" value="ALL"
<table WIDTH="100%"
<tr
<td width="30%"
</td
<td width="30%"
<input name="heading_message"
type="hidden"
value="Selection Screen"
<P align=center
<INPUT style="font-size:27pt;WIDTH: 400px;
COLOR: green; HEIGHT:
61px"
value="Submit
Selection";
type=submit
name=".State"

onclick="this.value='Submit';"

Appreciate any help,
Mjack


--
mjack003
------------------------------------------------------------------------
mjack003's Profile: http://www.excelforum.com/member.php...fo&userid=5141
View this thread: http://www.excelforum.com/showthread...hreadid=494309

  #2   Report Post  
Posted to microsoft.public.excel.misc
mjack003
 
Posts: n/a
Default HTML values


No professionals out there can explain how to do this? I've done some
research and figured out how to get the results I need with the
"sendkeys" function but this is unreliable and very sketchy. If
someone could at least point me in the right direction I'd appreciate
it.

Best Regards,
Mjack


--
mjack003
------------------------------------------------------------------------
mjack003's Profile: http://www.excelforum.com/member.php...fo&userid=5141
View this thread: http://www.excelforum.com/showthread...hreadid=494309

  #3   Report Post  
Posted to microsoft.public.excel.misc
mjack003
 
Posts: n/a
Default HTML values


I figured it out from alternate sites. Just wanted to post for all
those that were having the same problem I was.



Sub webtest()
Dim ie As Object
Dim projNum As String
Dim dept As String


projNum = InputBox("Please enter a project number?", "Time Run")

On Error GoTo 1
Set ie = CreateObject("InternetExplorer.Application")
With ie
.navigate "<URL goes here"
.Visible = True
Do While .Busy: DoEvents: Loop ' Loop until page is loaded
Do While .readyState < 4: DoEvents: Loop
With .document.forms("F001") ' form name goes in ()
.project_id_pulldown.Value = projNum 'all form values listed
below
.xl_or_html.Value = "XL"
.dept_id.Value = "L" & dept
.output_format.Value = "EST"
.submit 'submit form values

End With

End With
Set ie = Nothing
Exit Sub
1: MsgBox "Unexpected Error, sorry."
ie.Quit
Set ie = Nothing
End Sub

Hope this is of help for all those that can't find help on automating
internet explorer from excel. All you need to know is your site form
names and input value fields.

Best Regards,
Mjack


--
mjack003
------------------------------------------------------------------------
mjack003's Profile: http://www.excelforum.com/member.php...fo&userid=5141
View this thread: http://www.excelforum.com/showthread...hreadid=494309

Reply
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
hiding zero values in charts fascal Charts and Charting in Excel 4 December 19th 05 02:17 PM
Keeping a cell value constant trhoughout a list of values borikua05 Excel Worksheet Functions 2 December 3rd 05 03:03 PM
Count Intervals of 2 Consecutive Values in same Row and Return Count across Row Sam via OfficeKB.com Excel Worksheet Functions 6 November 29th 05 03:27 PM
I Need a formula to evaluate a cell with + or - values Bob in Oklahoma Excel Worksheet Functions 6 October 31st 05 02:41 PM
#N/A Values : Returned by Formulas vs Entered Manually monir Charts and Charting in Excel 8 July 7th 05 01:16 AM


All times are GMT +1. The time now is 08:19 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"