Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Interacting with Internet Explorer Problem

Hi, everyone. I have a macro in Excel that takes user inputs in Excel
and copies them into a form on a web page. I am having trouble
"clicking" on a button on the web page. I tried the following code to
find the button on the page:

For Each l In ie.Document.Links
Debug.Print l.Address
Next l

This code only finds the buttons at the top of the page and the bottom
of the page (i.e, it can't find buttons in the middle section/form).

The html shows the button I am interested in as:

"...onclick="submitForm('DefaultFormName',1,
{'_FORM_SUBMIT_BUTTON':'addrow'});return false"..."

This button adds a row to the form on the web page.

Does anyone have ideas on how I can click this button view VBA in
Excel?

Thanks in advance!
jk

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Interacting with Internet Explorer Problem

On Jul 30, 9:28 am, wrote:
Hi, everyone. I have a macro in Excel that takes user inputs in Excel
and copies them into a form on a web page. I am having trouble
"clicking" on a button on the web page. I tried the following code to
find the button on the page:

For Each l In ie.Document.Links
Debug.Print l.Address
Next l

This code only finds the buttons at the top of the page and the bottom
of the page (i.e, it can't find buttons in the middle section/form).

The html shows the button I am interested in as:

"...onclick="submitForm('DefaultFormName',1,
{'_FORM_SUBMIT_BUTTON':'addrow'});return false"..."

This button adds a row to the form on the web page.

Does anyone have ideas on how I can click this button view VBA in
Excel?

Thanks in advance!
jk


I wanted to clarify the code above... The for loop is actually

For Each l In ie.Document.Links
Debug.Print l.innerText
Next l

Thanks,
jk

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
Internet Explorer da Excel Discussion (Misc queries) 4 October 9th 08 09:31 PM
Excel/VBA/Internet Explorer Alex[_30_] Excel Programming 1 November 22nd 05 05:09 PM
Internet explorer problem Dave Peterson Excel Discussion (Misc queries) 0 January 24th 05 11:02 PM
internet explorer doris Excel Discussion (Misc queries) 1 January 5th 05 09:44 PM
Interacting with Explorer Tom Ridd Excel Programming 1 January 6th 04 03:33 PM


All times are GMT +1. The time now is 03:20 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"