Read our blogs, tips and tutorials
Try our exercises or test your skills
Watch our tutorial videos or shorts
Take a self-paced course
Read our recent newsletters
License our courseware
Book expert consultancy
Buy our publications
Get help in using our site
547 attributed reviews in the last 3 years
Refreshingly small course sizes
Outstandingly good courseware
Whizzy online classrooms
Wise Owl trainers only (no freelancers)
Almost no cancellations
We have genuine integrity
We invoice after training
Review 30+ years of Wise Owl
View our top 100 clients
Search our website
We also send out useful tips in a monthly email newsletter ...
Comparing Office Scripts with VBA Part four of a four-part series of blogs |
---|
Until recently, if you wanted to automate a Microsoft Excel workbook your only real choice was the VBA (Visual Basic for Applications) programming language. Now, there's a new option for adding code to Excel: Office Scripts for Excel. There are many similarities between Office Scripts and VBA, as well as some significant differences. This blog provides a comparison of the two systems.
|
In this blog
If you've read the previous parts of the blog, you should have a pretty good idea of the pros and cons of each system. This part of the blog summarises the differences and draws a conclusion.
The table below summarises the differences between Office Scripts and VBA.
Feature | Office Scripts | VBA |
---|---|---|
Used in Excel for the Web? | Yes | No |
Integrates with Power Automate? | Yes | No |
Controls applications other than Excel? | No | Yes |
Displays user interface elements like forms? | No | Yes |
Can be triggered by events? | No | Yes |
So, which of the two systems should you be using? The answer is: it depends!
If you want to write code that can run in Excel for the web across a range of platforms, your only choice is to use Office Scripts.
If, however, your development is focused on the desktop and you want your code to use a range of applications, VBA is still the go-to option.
Where the two systems overlap, your choice is mainly down to personal preference. If you're already familiar with VBA you'll almost certainly create a solution faster than using Office Scripts. If, however, you want to future-proof your skills, it may be worth investing the time in developing an Office Scripts solution.
One thing that is certain: Office Scripts is not a complete replacement for VBA (at least not yet). Both systems still have an important role to play and I expect they will continue to coexist for several years to come.
Parts of this blog |
---|
|
Some other pages relevant to the above blogs include:
Kingsmoor House
Railway Street
GLOSSOP
SK13 2AA
Landmark Offices
99 Bishopsgate
LONDON
EC2M 3XD
Holiday Inn
25 Aytoun Street
MANCHESTER
M1 3AE
© Wise Owl Business Solutions Ltd 2024. All Rights Reserved.