Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default GetObject Equivalent for Internet Explorer?

Is there anyway/alternative method of using GetObject for Internet Explorer?

Is there a workaround for GetObject? I saw some things yesterday but it
seemed to involve downloading something, which doesn't work for me at work
(we're not supposed to use downloaded things etc). And IE doesn't add
itself to the existing applications listing (or whatever it's called) like
programs that are associated to file extensions - excel, word, adobe etc.

Basically, I want to target an existing IE window, the name of it will be
unique, and then from there, either copy the contents of that web page into
a cell, or be able to target a textbox on that page called xxfundsxx (for
example) to return the contents of that textbox into a variable.

Navigating to the page and then getting the data (which I can do, but is not
possible in this situation) won't work due to it being an IE based
application that is always the same web page, but it extracts data for
different accounts etc when it is opened. Has to be from an existing window.

Cheers.



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default GetObject Equivalent for Internet Explorer?

Not sure I get the question, but have you tried

getobject(,"InternetExplorer.Application")

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"spaceman" wrote in message
...
Is there anyway/alternative method of using GetObject for Internet

Explorer?

Is there a workaround for GetObject? I saw some things yesterday but it
seemed to involve downloading something, which doesn't work for me at work
(we're not supposed to use downloaded things etc). And IE doesn't add
itself to the existing applications listing (or whatever it's called) like
programs that are associated to file extensions - excel, word, adobe etc.

Basically, I want to target an existing IE window, the name of it will be
unique, and then from there, either copy the contents of that web page

into
a cell, or be able to target a textbox on that page called xxfundsxx (for
example) to return the contents of that textbox into a variable.

Navigating to the page and then getting the data (which I can do, but is

not
possible in this situation) won't work due to it being an IE based
application that is always the same web page, but it extracts data for
different accounts etc when it is opened. Has to be from an existing

window.

Cheers.





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default GetObject Equivalent for Internet Explorer?

Yes, but because Internet Explorer doesn't have any program associations
like .xls (has .url, .htm, but they aren't programs) getobject won't work.

Scenario.

I have an IE window open. I want to grab a value from a textbox in that
window from Excel. The window title will always be unique, so that is how I
will be identifying the window, I presume.

I either want to grab a value in a textbox, or copy the contents of the web
page into a cell.

Using createobject and navigating to the URL is not an option.

Cheers.
"Bob Phillips" wrote in message
...
Not sure I get the question, but have you tried

getobject(,"InternetExplorer.Application")

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"spaceman" wrote in message
...
Is there anyway/alternative method of using GetObject for Internet

Explorer?

Is there a workaround for GetObject? I saw some things yesterday but it
seemed to involve downloading something, which doesn't work for me at
work
(we're not supposed to use downloaded things etc). And IE doesn't add
itself to the existing applications listing (or whatever it's called)
like
programs that are associated to file extensions - excel, word, adobe etc.

Basically, I want to target an existing IE window, the name of it will be
unique, and then from there, either copy the contents of that web page

into
a cell, or be able to target a textbox on that page called xxfundsxx (for
example) to return the contents of that textbox into a variable.

Navigating to the page and then getting the data (which I can do, but is

not
possible in this situation) won't work due to it being an IE based
application that is always the same web page, but it extracts data for
different accounts etc when it is opened. Has to be from an existing

window.

Cheers.









  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 860
Default GetObject Equivalent for Internet Explorer?

Hi spaceman,

spaceman wrote:
I have an IE window open. I want to grab a value from a textbox in
that window from Excel. The window title will always be unique, so
that is how I will be identifying the window, I presume.

I either want to grab a value in a textbox, or copy the contents of
the web page into a cell.

Using createobject and navigating to the URL is not an option.


There is no straightforward way to do this AFAIK. If you were able to use
CreateObject, you could do it easily. If the window is already open, you'll
probably have to use the API. I'm not sure about getting the value of a
particular textbox housed by that window, but I suppose it's possible.
Here's an example of how to get the URL of all active IE windows:

http://www.mvps.org/access/api/api0051.htm

--
Regards,

Jake Marx
www.longhead.com


[please keep replies in the newsgroup - email address unmonitored]


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 441
Default GetObject Equivalent for Internet Explorer?

Hi, this may help a little bit...

The following will load a new instance of IE and navigate to this web site:

Sub test()

Dim iNet As Object
Dim sURL As String
sURL =
"http://msdn.microsoft.com/newsgroups/default.aspx?dg=microsoft.public.excel.programming &lang=en&cr=US"
Set iNet = CreateObject("InternetExplorer.Application")
iNet.Visible = True
iNet.Navigate sURL
End Sub

HTH/

"spaceman" wrote:

Is there anyway/alternative method of using GetObject for Internet Explorer?

Is there a workaround for GetObject? I saw some things yesterday but it
seemed to involve downloading something, which doesn't work for me at work
(we're not supposed to use downloaded things etc). And IE doesn't add
itself to the existing applications listing (or whatever it's called) like
programs that are associated to file extensions - excel, word, adobe etc.

Basically, I want to target an existing IE window, the name of it will be
unique, and then from there, either copy the contents of that web page into
a cell, or be able to target a textbox on that page called xxfundsxx (for
example) to return the contents of that textbox into a variable.

Navigating to the page and then getting the data (which I can do, but is not
possible in this situation) won't work due to it being an IE based
application that is always the same web page, but it extracts data for
different accounts etc when it is opened. Has to be from an existing window.

Cheers.






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
internet explorer instance Manoj Excel Discussion (Misc queries) 0 February 1st 06 09:56 AM
Internet explorer download/XP Pro?? Maxwell-5000 Excel Discussion (Misc queries) 1 January 3rd 06 10:03 PM
GetObject equivalent for IE spaceman Excel Programming 3 December 15th 05 07:30 AM
internet explorer doris Excel Discussion (Misc queries) 1 January 5th 05 09:44 PM


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