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
544 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 ...
The hidden door to extra functions in Excel Part two of a six-part series of blogs |
---|
Did you know that you could combine range names and legacy Excel 4 functions to list out the worksheets or range names in your workbook - wthout using macros? I didn't either - here's how to do this, and much more! |
When I first started teaching programming in Excel, VBA didn't exist as a programming language. Instead, macro commands were written into cells - like this in fact:
From memory, this macro would work, but I offer no guarantees!
You can still write macros like this:
Just right-click on a worksheet tab and choose this option to go back in time to the early 1990s!
However, you would be foolish to do so - why not use the much better VBA language incorporated in Excel?
A VBA macro to do the same thing.
Excel 4 macros were introduced into Excel in 1992 (the year in which John Major's Conservatives won a General Election, and in which Wise Owl was founded). They were superseded by the introduction of VBA the following year, and that should have been that.
For reasons of backward compatibility, Excel 4 macros still work in Excel to this day, and will continue to do so until Microsoft decide to disable them. The reason this is useful is that you can reference Excel 4 functions in range names - for example:
Excel 4 function | Example of something it does |
---|---|
Get.Workbook | Gets a list of the worksheets in a workbook |
Get.Document | Gets details of the last active cell in a worksheet |
Get.Name | Gets information about a range name |
It's this little-known (well, little-known by me until now) fact which allows us to extend the range of functionality in Excel.
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.