VBA & Macro Problems

How to Add VBA Library References in Excel for Mac

Maira MehtabMaira Mehtab Nov 18, 2026 869 views

Question details

The user wants to add VBA library references in Excel for Mac and find a way to retrieve table data from websites.

How to Add VBA Library References in Excel for Mac
Product
Microsoft Excel for Mac
Device & OS
macOS
Scenario
The user is developing an Excel VBA project that needs access to a library or website table data.
Observed behavior
The goal is to select an available library in the VBA editor or use another supported method to bring website table data into Excel.
Before you start

Open the workbook containing your VBA project and confirm that the library you want is installed and compatible with Excel for Mac. If the Developer tab is hidden, enable it through Excel > Settings > Ribbon & Toolbar.

Solution 1Recommended

Select an installed reference in the VBA editor

Use this method when the required library is already available on your Mac.

VBA references are usually installed with Office or supplied by the software that provides the library. They are not generally downloaded from a central Microsoft list.

1
Open the VBA editor

In Excel, open the workbook and select Developer > Visual Basic.

2
Open the references list

In the Visual Basic Editor, select the workbook's project, then choose Tools > References.

3
Select the library

Check the box beside the installed library you need and click OK. If it is unavailable, check the library provider's installation instructions and Mac compatibility.

Select an installed reference in the VBA editor
Check compatibility: A library designed only for Windows may not be available in Excel for Mac. Avoid downloading reference files from untrusted sources.
Free Microsoft Office alternative

Work with website table data in WPS Spreadsheet

WPS Office is a free, lightweight alternative with a familiar spreadsheet interface and compatibility with common Excel formats, making it easy to move ordinary workbooks. It does not add or repair Microsoft Excel VBA references.

Paste website tables into a familiar spreadsheet gridOpen and edit common Microsoft Excel formats, including XLSX and XLSUse a free, lightweight office suite for everyday spreadsheet workMove ordinary workbooks between Excel and WPS Spreadsheet
microsoft office alternative - wps office

Frequently Asked Questions

Where do I find VBA references in Excel for Mac?

Open Developer > Visual Basic, select your workbook's project, and choose Tools > References in the VBA editor.

Why isn't the library I need listed under References?

The library may not be installed, may not be registered for use by the editor, or may not support macOS. Check the software provider's installation and compatibility instructions.

Can I use a Windows VBA library on a Mac?

Not necessarily. Libraries that depend on Windows-only components may not work in Excel for Mac. Check whether the library provider offers a Mac-compatible version.

Can I import a website table without writing VBA?

Check the Data tab for Get Data or Power Query and a web source in your Excel version. If that option is unavailable, copy the table from your browser and paste it into the worksheet.