
ODBC FOR MAC EXCEL INSTALL
If you are connecting to other ODBC data sources (for example, FileMaker Pro), then you'll need to install the ODBC driver for the data source on your Mac. Then use the dialog boxes to import the data. On the Data tab, click New Database Query > SQL Server ODBC. This version of Excel does provide an ODBC driver for connecting to SQL Server Databases. HOWEVER, as noted, if you're using Excel 2016 for Mac, you can do it: So, to answer your question there is no way to get your SQL query to work on Mac, you need to use something else entirely.
ODBC FOR MAC EXCEL FOR MAC
Importantly, for your question, OLE DB is explicitly not supported on Mac OS if using Excel 2011 for Mac.Įxcel 2011 for Mac cannot import data from OLE DB or OLAP data sources.


For more information about installing ODBC drivers, see Microsoft Query Help.
ODBC FOR MAC EXCEL DRIVERS
For more information, see ODBC drivers that are compatible with Excel for Mac. Compatible ODBC drivers are available from third-party vendors. To import data from a database, such as Microsoft SQL Server, you must have an ODBC driver that is compatible with Microsoft Query installed on your computer. In your case on Mac OS, the library doesn't exist and is, as far as I know, explicitly not allowed. Your code uses late-binding and doesn't require a "Reference" so long as the library is available on the machine. Now click the Test button to establish a test connection to your data source. These versions of Excel do provide an ODBC driver for connecting to SQL Server Databases. The instructions below apply to Excel 2019 and Microsoft 365 for Mac. Find the DEVARTMYSQL section and click the Configure button: In the appeared dialog, specify the required connection settings and click OK. If you want to import data into Excel for Mac from a database (for example, from FileMaker Pro), you need an Open Database Connectivity (ODBC) driver installed on your Mac. Sheets("Dashboard").Range("B65536").End(3).Offset(1, 0).CopyFromRecordset rs For this, perform the following steps: Run the iODBC utility of the required bitness. Sorgu1 = sorgu1 + " from where = " + "'" + makine + "'" Makine = Sheets("Dashboard").Cells(2, 11).Value ThisWorkbook.FullName & " extended properties=""Excel 12.0 hdr=yes""" Set con = CreateObject("nnection")Ĭon.Open "provider=.12.0 data source=" & _ I don't know code is important here but I'll share it anyway. How can I run this? Normally, in windows, you choose tools > references and check oledb connection but there isn't a tools option in Excel Mac. I have write a macro in Excel 2016 on a windows pc via oledb connection.
