Consulting

Results 1 to 1 of 1

Thread: VBA: Internet Explorer zoom level

  1. #1
    VBAX Regular
    Joined
    Feb 2018
    Posts
    17
    Location

    Exclamation VBA: Internet Explorer zoom level

    Hi all, I have this code that can open Internet Explorer and Browse for a webpage. Now what I want to learn is how to adjust the zoom-in and zoom-out level and scroll level of the webpage after it loaded. Hoping someone could help me. Thank you

     
    Sub BrowseToSite()
    Dim shp As Shape
    Dim IE As New SHDocVw.InternetExplorer
    Dim x As Long
    'Set IE = New SHDocVw.InternetExplorer
    
    
    IE.Visible = True
    apiShowWindow IE.hwnd, SW_MAXIMIZE
    IE.Navigate "https://en.wikipedia.org/wiki/Main_Page"
    
    
    Do While IE.ReadyState <> READYSTATE_COMPLETE: Loop
    
    
    Debug.Print IE.LocationName, IE.LocationURL
    
    IE.Document.forms("searchform").elements("search").Value = "VBA"
    IE.Document.forms("searchform").elements("go").Click
    
    end sub
    Last edited by baralus; 04-23-2018 at 06:00 AM. Reason: adding the code mark

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •