Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 140
Default Moving Focus On Web Forms

Is there any way to move the focus around on a web form from VBA - Excluding "SendKeys {TAB}"???


Dennis
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 298
Default Moving Focus On Web Forms

If you can get a reference to the root HTMLDocument object then you can use that to reach the appropriate child elements' focus() method

Eg:
for a text input with Id or Name of "txtFocus"

doc.getElementById("txtInput").focus
or
doc.getElementsByName("txtInput")(1).focus

For plenty of examples on how to get a reference to the Document object, Google on "automate IE VB[A]"

Tim

"Dennis Tucker" wrote in message ...
Is there any way to move the focus around on a web form from VBA - Excluding "SendKeys {TAB}"???


Dennis
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 140
Default Moving Focus On Web Forms

I do have this access. I think this is what I was looking for. I will try it out. Thank you so much.

Dennis
"Tim Williams" wrote in message ...
If you can get a reference to the root HTMLDocument object then you can use that to reach the appropriate child elements' focus() method

Eg:
for a text input with Id or Name of "txtFocus"

doc.getElementById("txtInput").focus
or
doc.getElementsByName("txtInput")(1).focus

For plenty of examples on how to get a reference to the Document object, Google on "automate IE VB[A]"

Tim

"Dennis Tucker" wrote in message ...
Is there any way to move the focus around on a web form from VBA - Excluding "SendKeys {TAB}"???


Dennis
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
moving within forms Mike H Excel Programming 4 December 30th 08 01:59 PM
Forms and worksheet focus robbie Excel Programming 2 August 10th 07 05:26 AM
TAB and focus moving from unprotected cell in protected sheet til dropdown. Claus[_3_] Excel Programming 0 August 26th 05 11:28 AM
NonModal Forms and Set Focus JimP Excel Programming 0 November 24th 04 02:56 AM
Vying for the focus - Worksheet Vs Forms Adrian[_7_] Excel Programming 0 August 4th 04 04:20 PM


All times are GMT +1. The time now is 07:32 AM.

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"