Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Running URL using VBA - but not displaying IE window


I need to run a URL usnig VBA (this in turn runs a Lotus Notes Agent).
This needs to happen in the back ground if possible, without displaying
Internet Explorer - or at least keeping IE in the background and then
closing it once run)

can anybody advise?


thanks in advance,
Matt


--
matpj
------------------------------------------------------------------------
matpj's Profile: http://www.excelforum.com/member.php...o&userid=21076
View this thread: http://www.excelforum.com/showthread...hreadid=510508

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 575
Default Running URL using VBA - but not displaying IE window

Matt,

This is cut out of a much larger routine, but should point you in a possible
direction. It doesn't go anywhere near IE.

'set a project reference to ms xml 4, preferably with service packs
installed
Sub XMLPostToWebPage()
Dim oXML As MSXML2.XMLHTTP40
Dim strIp as string, strPost As String

Set oXML = New MSXML2.XMLHTTP40
strIP = http://nnn.nnn.nnn.nnn/ ' or a web address
strPost = strIP & "index.html" 'change to your web page

'if the page takes parameters, add them here in the same way I have added
the dummy var below,
'and change the question mark before dummy to an ampersand

'append a dummy var to make sure the page refreshes
Randomize
strPost = strPost & "?Dummy=" & CInt(1000 * Rnd())

With oXML
.Open "POST", strPost, False
.send
If .Status < 200 Then
Call MsgBox("An error occured. " & _
"The error messages received we " & vbcrlf & vbcrlf & _
.responseText, vbInformation, msgTitle)
End If
End With
Set oXML = Nothing
End Sub

Robin Hammond
www.enhanceddatasystems.com



"matpj" wrote in
message ...

I need to run a URL usnig VBA (this in turn runs a Lotus Notes Agent).
This needs to happen in the back ground if possible, without displaying
Internet Explorer - or at least keeping IE in the background and then
closing it once run)

can anybody advise?


thanks in advance,
Matt


--
matpj
------------------------------------------------------------------------
matpj's Profile:
http://www.excelforum.com/member.php...o&userid=21076
View this thread: http://www.excelforum.com/showthread...hreadid=510508



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Running URL using VBA - but not displaying IE window


thanks Robin,

i'll check that out and hopefully get the result!!

Mat

--
matp
-----------------------------------------------------------------------
matpj's Profile: http://www.excelforum.com/member.php...fo&userid=2107
View this thread: http://www.excelforum.com/showthread.php?threadid=51050

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
Excel2000 running but window is gone K C Excel Discussion (Misc queries) 0 April 9th 09 07:54 PM
Project Window in VBE not displaying items grouped properly ExcelMonkey Excel Programming 0 July 15th 05 01:23 PM
Displaying the Save As Window using VBA Dan Excel Programming 1 April 20th 05 04:01 PM
hiding / displaying the excel application window JulieD Excel Programming 2 August 15th 04 04:36 PM
Displaying a message while a macro is running kevin Excel Programming 3 April 28th 04 01:08 PM


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