About 1,950,000 results
Open links in new tab
  1. Use VBA to query SQL Azure Database - Microsoft Community

    If I understand your request, you want to be able to specify a query and then execute that query programmatically in Excel 2016 for Mac. As things stand, you can almost do this. There is a broken VBA command that is a blocking issue. Here's a code example that works in Windows connecting to SQL Server.

  2. excel - How to automate a power query in VBA? - Stack Overflow

    Jul 17, 2018 · VBA is absolutely suitable for automating PowerQuery and is particularly efficient for repetitive work. The trick is to create first the query you need in PowerQuery, then use the Advanced Editor to capture the M. Copy it and store it, either in a cell in the workbook, or in a separate text file. The method is described in detail by Gil Raviv ...

  3. vba - Is there an Azure resource that can run a Macro in an excel ...

    Jun 29, 2020 · The Macros connect to an SQL Server, transforms some SQL data, loads the results into an excel table, and refreshes the pivots and charts contained within the Excel spreadsheet. Currently I manually click on Run Marco in the Excel spreadsheet. Could an Azure Logic App, or another Azure Resource, Run the Macro instead for me?

  4. excel - How do I connect to Azure SQL DB from VBA with …

    Set cnSQL = New ADODB.Connection 'cnSQL.Open "ODBC;DRIVER=SQL Server; Authentication = ActiveDirectoryInteractive; Database=XXXXX; Data Source=XXXX.database.windows.net" This should give you what you need. You'll have to download the ODBC Driver 17 for SQL Server and depending on your connection type you can update Authentication option.

  5. Direct Query from Excel to Azure Data Explorer

    Dec 8, 2021 · The blog post shows how to import filtered and aggregated data from Azure Data Explorer(ADX) into Excel. The user of the report can use Excel to select the...

  6. Excel VBA loop through SQL Azure database | Chanmingman's …

    Jun 11, 2020 · Now, you can use VBA to connect to SQL Azure database and populate the Excel sheet. The code is almost 95% the same except you will get a connection string from Azure Portal like “Server=tcp:servername.database.windows.net,1433;Initial Catalog=SSISDB;Persist Security Info=False;User ID=username;Password=password;MultipleActiveResultSets=False ...

  7. Using SQL in VBA on Excel. Run SELECT Queries from VBA

    Jul 27, 2014 · Let see how to run a simple SELECT SQL Query in Excel VBA on an example Excel Worksheet. On the right see my Excel Worksheet and the Message Box with the similar output from my VBA Macro. The VBA Code is below: .Provider = "Microsoft.ACE.OLEDB.12.0"

  8. Connect with Excel - Azure SQL Database & Azure SQL Managed …

    Dec 28, 2023 · Learn how to connect Microsoft Excel to a database in Azure SQL Database or Azure SQL Managed Instance. Import data into Excel for reporting and data exploration.

  9. Run Microsoft Query with VBA | MrExcel Message Board

    Mar 26, 2004 · To do this, goto Tools|Macro|Record New Macro. Now, once this has started, go and run your query as you want it to be done. Once you are finished, press the stop button, on the Macro toolbar, and go and view your code.

  10. 4 Ways to Unpivot Data in Microsoft Excel

    Apr 2, 2025 · Once the VBA macro is ready, press Alt + F8 to launch the Macro dialog and select the UnpivotTable macro. Hit Run to execute the script. Select source data. The macro will ask you to choose the source dataset through a dialog box. Select destination. Then, it’ll also ask you to select the destination cell for the normalized form dataset.

Refresh