Automate your repetitive tasks in Excel without VBA macros
As a frequent Excel user, you probably have some daily routine operations. In this case Excel macros helps record the sequence of the user’s actions as a VBA script. This approach is ideal for automating uncomplicated operations. For more sophisticated tasks, users with programming skills can create a VBA project.
The Automation add-in offers a completely new approach to automation of Excel routines:
- Write commands in a simple Excel table instead of bulky VBA modules
- Automate even complex and multistep operations
- Automate XLTools operations: SQL Queries, Export to CSV, Unpivot Table, etc.
- Create your own custom buttons on the toolbar
- For advanced users and developers
You do not have to be a VBA-guru. If some of your business processes in Excel take too much time, our XLTools team will help you automate them!
Before you begin, add the Automation tool to Excel
Automation is one of the 20+ features within XLTools Add-in for Excel. Works in Excel 2019, 2016, 2013, 2010, desktop Office 365.
How to automate operations in Excel without VBA [Download Tutorial]
Excel VBA macros often grow into hundreds lines of script, very inconvenient to work with. XLTools Automation add-in allows you to write commands in simple and concise Excel tables. Table display is more informative, visual and easier to edit. You can also assign an automation command to a custom button on the ribbon.
The Automation add-in is a universal tool to automate virtually any command and their sequences:
- Automate SQL Queries against Excel tables: SELECT, GROUP BY, JOIN ON, etc.
- Automatically unpivot a crosstab table to a flat list
- Automatically export an Excel table to a CSV file
- Automatically extract data from other Excel or CSV files
- Automate table filtering, etc.
Here is how you create an automation command in Excel table:
XLTools.SQLSelect | |
---|---|
SQLQuery: | Write the query as you normally would. |
ApplyTableName: | Type the name for the resulting table. |
OutputTo: | Specify where to place the result. |
We have prepared a Tutorial file with examples, syntax, code and line-by-line transcripts.
Example: how to automate an SQL query against Excel tables
- Select the range "Historical Product Price List and Sales".
- On the Home tab click Format as Table Apply a table style.
- On the Design tab, type the table name "Sales2014".
- Add a new worksheet, e.g. “AutoCommands”, and write the SQL automation command.
- Select the commands table Click the Execute Commands button on XLTools tab.
Done, the result is generated immediately.
After the command is executed, the query result will be generated in table format. If necessary, you can address this table in further queries.In this example, the SQL query has extracted sales data for 3rd Quarter 2014.
- Click Add Custom buttons on XLTools tab.
- Name the button, e.g. "Generate Q Reports" Validate the range of the commands table.
- Click Save The custom button will appear on XLTools tab.
Prepare you primary data for SQL query. Format it as a named table, otherwise SQL query will not be able to process data:
Execute the SQL automation command:
Add your own buttons to Excel ribbon.
In each Excel workbook you can create up to 3 custom buttons assigned to your own automation commands:
Now, you can easily create a quarterly report in just one button click – literally!literally!
Hi vyshali, thanks for your feedback! This could be possible - depends on the steps you require. I have emailed you for details.
Hi Clint, XLTools Automation is a dektop add-in for Microsoft Excel, it is not compatible with Google Sheets. So if you do prefer desktop Excel to Google Sheets, you may indeed find XLTools useful.
Hello and thank you for your interest in XLTools! Could you please send a sample file (please remove any confidential data) and a detailed description of what you have – and what need as a result. We’ll take a look and see of this can be accomplished with XLTools Automation. It works with Excel 2007.