Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Using VBA, I need to start an Internet Explorer browser from Excel. The
below code does this but I am not able to control the vertical scroll bars from my VBA application. How do I do this so I can poisition the scroll bar where I want it displayed? Here is the vb code that works: Set Ie = CreateObject("InternetExplorer.Application") Ie.AddressBar = False Ie.MenuBar = False Ie.Toolbar = False Ie.Width = 600 Ie.Height = 750 Ie.Left = 0 Ie.Top = 0 Ie.navigate "www.yahoo.com" Ie.resizable = True Ie.Visible = True Ie.document.vscrollbar.value = 200 ' THIS DOES NOT WORK !! Thanks, Gary |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Try this Sub LaunchIeAndManageVerticalScroll() Const READYSTATE_COMPLETE& = 4& Dim ie As Object Set ie = CreateObject("InternetExplorer.Application") With ie .AddressBar = False .MenuBar = False .Toolbar = False .Width = 600& .Height = 750& .Left = 0& .Top = 0& .navigate "www.yahoo.com" .resizable = True While Not .readyState = READYSTATE_COMPLETE DoEvents Wend .document.parentWindow.scroll 0&, 200& .Visible = True End With Set ie = Nothing End Sub Alain CROS "gary" wrote: Using VBA, I need to start an Internet Explorer browser from Excel. The below code does this but I am not able to control the vertical scroll bars from my VBA application. How do I do this so I can poisition the scroll bar where I want it displayed? Here is the vb code that works: Set Ie = CreateObject("InternetExplorer.Application") Ie.AddressBar = False Ie.MenuBar = False Ie.Toolbar = False Ie.Width = 600 Ie.Height = 750 Ie.Left = 0 Ie.Top = 0 Ie.navigate "www.yahoo.com" Ie.resizable = True Ie.Visible = True Ie.document.vscrollbar.value = 200 ' THIS DOES NOT WORK !! Thanks, Gary |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Arlan,
This works perfectly !! Thanks fro your help. I was stuck on this for a long time. Gary "PERSONNE@ICI" wrote: Hi, Try this Sub LaunchIeAndManageVerticalScroll() Const READYSTATE_COMPLETE& = 4& Dim ie As Object Set ie = CreateObject("InternetExplorer.Application") With ie .AddressBar = False .MenuBar = False .Toolbar = False .Width = 600& .Height = 750& .Left = 0& .Top = 0& .navigate "www.yahoo.com" .resizable = True While Not .readyState = READYSTATE_COMPLETE DoEvents Wend .document.parentWindow.scroll 0&, 200& .Visible = True End With Set ie = Nothing End Sub Alain CROS "gary" wrote: Using VBA, I need to start an Internet Explorer browser from Excel. The below code does this but I am not able to control the vertical scroll bars from my VBA application. How do I do this so I can poisition the scroll bar where I want it displayed? Here is the vb code that works: Set Ie = CreateObject("InternetExplorer.Application") Ie.AddressBar = False Ie.MenuBar = False Ie.Toolbar = False Ie.Width = 600 Ie.Height = 750 Ie.Left = 0 Ie.Top = 0 Ie.navigate "www.yahoo.com" Ie.resizable = True Ie.Visible = True Ie.document.vscrollbar.value = 200 ' THIS DOES NOT WORK !! Thanks, Gary |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Launch new browser window from an excel web page | Excel Discussion (Misc queries) | |||
Launch new browser window from hyperlink within Excel | Excel Worksheet Functions | |||
Launch "Browser URL" when Cell clicked | Excel Programming | |||
horizontal & vertical scroll bars | Excel Worksheet Functions | |||
Scroll bars (vertical and horizontal). | Excel Discussion (Misc queries) |