Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default to call WebBrowser in a macro?

We are working on Excel code to make structured Contact records.
It would be useful to open a WebBrowser window for source text

I have not yet found suitable sample text for VBA and VBE under XP 2003.

One way might be to invoke a New Web Query - is there any code to do that?

Ross Wilcock


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default to call WebBrowser in a macro?

What does "open a WebBrowser window for source text" mean?

Do you need a web browser to view html documents, or are you asking about
automating IE to perform some task?

Tim

--
Tim Williams
Palo Alto, CA


"Ross Wilcock" wrote in message
...
We are working on Excel code to make structured Contact records.
It would be useful to open a WebBrowser window for source text

I have not yet found suitable sample text for VBA and VBE under XP 2003.

One way might be to invoke a New Web Query - is there any code to do that?

Ross Wilcock




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default to call WebBrowser in a macro?


Thanks Tim for your reply. Sorry - busy learning!
I simplified the task to just open IExplorer by clicking a button. I
haven't found how to call IE from a macro yet.
Thanks for your interest.
Ross



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default to call WebBrowser in a macro?

This will do what you want to start with....

Post again if you have more advanced requirements!

Tim.

Sub CreateAndLoad()

dim IE
Set IE = CreateObject("InternetExplorer*.Application")
IE.Visible = True
IE.navigate "http://www.yahoo.com"

'wait while the page loads (optional)
Do While Not IE.readyState = READYSTATE_COMPLETE
Loop

End Sub

"Ross Wilcock" wrote in message
...

Thanks Tim for your reply. Sorry - busy learning!
I simplified the task to just open IExplorer by clicking a button.
I
haven't found how to call IE from a macro yet.
Thanks for your interest.
Ross



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



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
Call Macro jswalsh33 Excel Discussion (Misc queries) 2 February 21st 10 10:38 AM
Can I call an Excel VBA function from within a WebBrowser control? John Brock Excel Discussion (Misc queries) 0 October 20th 09 02:16 AM
How can run a macro ( call a macro) on selection of any filtercriteria? [email protected] Excel Worksheet Functions 7 February 20th 09 12:34 AM
Call an Access macro from an Excel macro Jason W Excel Discussion (Misc queries) 1 May 1st 08 08:33 PM
Call another Macro Sandy Excel Programming 4 January 11th 05 04:06 PM


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