3

I'd like to develop an Excel VBA project that interacts with the browser. I hear Selenium is a great tool for this but Excel 2013 where I work doesn't seem to have it listed as an object library under Tools > References... in the VBA editor.

Is there a site where I can download Selenium for Excel VBA and import it via the Browse button, or am I doomed to abandon this project? Having looked online, I can find selenium downloads for several programming languages, but not VBA.

Alternately, is there some other method I can use to read the URL of a user's active tab in a Chrome browser with Excel? The computers here are pretty locked down so I can't write a chrome extension for them like I usually would so I'm looking for a workaround!

Many thanks!

3
  • 2
    I'm using selenium for a while now to get some data from sites opened in Chrome. Here is the excel add-in site: Selenium excel add-in. In the download page you can find samples as well. Commented May 27, 2016 at 9:47
  • Thank you Dawid, but this is an exe file. It cannot be imported as a library into excel and appears to need to be run via installshield, but the computers here won't let me install it so I'm still looking for an .olb, .tlb or .tll file to add Selenium as a reference library to Excel. Commented May 27, 2016 at 10:05
  • Have you tried to see if these work? github.com/florentbr/SeleniumBasic, htejera.users.sourceforge.net/vbswebdriver Commented May 25, 2018 at 16:42

1 Answer 1

3

you can install add in and then enable Selenium wrapper option in Excel>Tools>reference and then you can proceed with your activities. Visit Selenium Add in for excel to download the file

Sign up to request clarification or add additional context in comments.

2 Comments

This link downloads an installer which is an .EXE file. The web drivers seem OK but it tries to install an IDE for Firefox which fails because it is "corrupt".
This works for Excel 365 VBA. Option Explicit //Public Sub sbSeleniumTutorial() //MsgBox "sbSeleniumTutorial()" //Dim bot As New WebDriver //bot.Start "edge", "yahoo.com" //bot.Get "/" //End Sub

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.