Thank you for Visiting my Blog

Tuesday, 16 May 2017

How to open Webpage using VBA

 
Hello Guys!!
 
below is the code to open webpage using VBA. Provide the URL which you wanted to open at below highlighted line . You even can change the browser as per your convenience.


Sub MyWebpage()

Dim ie As Object

    Set ie = CreateObject("INTERNETEXPLORER.APPLICATION")
    ie.Navigate "
https://www.google.co.in/"
   
      ie.Visible = True
    While ie.Busy
        DoEvents
   Wend



End Sub



Thank you !!!

No comments:

Post a Comment