Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default Minimize IE window

While in Excel, I use the code below to log in a website.

I would like the Internet Explorer (IE) window to be minimized (but not
invisible) the moment it pops up.

What can I add to the code for the IE window to be minimized?

-----------
Dim ie As Object
Set ie = CreateObject("internetexplorer.application")
With ie
.Visible = True
.navigate "https://www.xxx.com"
Do While .ReadyState < 4: Loop
With .Document.all
.lid.Value = "username"
.pwd.Value = "password"
.submit.Click
Do While ie.ReadyState < 4: Loop
End With
End With
Set ie = Nothing


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Minimize IE window

Here is some similar code. We activate the system menu with ALT+SPACE and
move down and minimize from the

Sub Launch_IE()

Set ie = CreateObject("InternetExplorer.Application")
ie.AddressBar = False
ie.MenuBar = False
ie.Toolbar = False
ie.Width = 610
ie.Height = 700
ie.Left = 0
ie.Top = 0
ie.navigate "http://www.cnn.com"

ie.resizable = True
ie.Visible = True
ActiveSheet.Activate
AppActivate ie
SendKeys ("% ")
SendKeys ("{DOWN}")
SendKeys ("{DOWN}")
SendKeys ("{DOWN}")
SendKeys ("{ENTER}")
DoEvents
End Sub

You can ignore the "window dressing" at the top of the macro.
--
Gary''s Student - gsnu200812


"AP" wrote:

While in Excel, I use the code below to log in a website.

I would like the Internet Explorer (IE) window to be minimized (but not
invisible) the moment it pops up.

What can I add to the code for the IE window to be minimized?

-----------
Dim ie As Object
Set ie = CreateObject("internetexplorer.application")
With ie
.Visible = True
.navigate "https://www.xxx.com"
Do While .ReadyState < 4: Loop
With .Document.all
.lid.Value = "username"
.pwd.Value = "password"
.submit.Click
Do While ie.ReadyState < 4: Loop
End With
End With
Set ie = Nothing



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default Minimize IE window

I would like the Internet Explorer window to be
minimized the moment it pops up.


.navigate "https://www.xxx.com"



LOL :-)))

Well, visiting THAT particular web-site, would probably also want me to
minimize it straight away, if opening it on my work computer :-)))


CE


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
show minimize window selection for Excel Spence Excel Discussion (Misc queries) 0 May 18th 10 04:44 PM
Disable Window Minimize/Maximise/Resize Maver1ck666 Excel Programming 0 December 4th 07 11:59 AM
Excel 03 - Send Attachment (can't minimize Outlook window) KKate Excel Discussion (Misc queries) 0 August 10th 07 01:20 AM
minimize just opened workbook window JohnZ[_2_] Excel Programming 1 July 19th 07 12:02 AM
window minimize Tom Ogilvy Excel Programming 4 July 18th 03 03:38 PM


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