562 attributed reviews in the last 3 years
Refreshingly small course sizes
Outstandingly good courseware
Whizzy online classrooms
Wise Owls 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 ...
Event-handling macros in Excel Visual Basic Part four of a five-part series of blogs |
---|
Want to do something when a user opens a workbook, or stop them clicking on a particular cell? You need to learn how to attach code to Excel workbook or worksheet events!
This series of blogs is part of our Excel VBA online tutorial. If you want to learn more, have a look at our classroom-based courses in VBA macros and/or Excel.
|
Sadly (for you, as a developer) it is easily possible to bypass macros which run automatically.
When you open up any workbook containing macros, if your security level is set to Medium (the default and most sensible value), you'll see a message like this:
A typical dialog box when you open a workbook containing macros.
If your user chooses the default button to disable macros, there's not much you can do about it!
An alternative way to bypass macros is by holding down the SHIFT key just at the point that you're about to open a file.
If you're distributing your workbook to clients, colleagues or other third parties, there are various solutions to this problem - but none is that satisfactory:
You can ask them nicely to enable macros in your workbook.
You can copy the workbook into a trusted folder (but you'll need to have administrator rights to their machine to do this).
You can digitally sign the macro (but the recipient will still be able to refuse to accept it).
Basically, there is no way of forcing a third party to run your macros - which if you think about it is as it should be!
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 2023. All Rights Reserved.