DATA DOCTORS

Here’s how to use macros safely and effectively

Jan 13, 2024, 7:15 AM

(Pexels photo)...

(Pexels photo)

(Pexels photo)

Q: What are ‘macros’ and how are they used?

A: In the world of computer software, macros are powerful tools available in programs you likely use every day.

They essentially provide you with the ability to create a set of instructions that can be grouped and launched with a simple combination of keys.

Creating a macro is the process of recording keystrokes and mouse clicks for repetitive tasks such as creating tables, custom layouts or inserting formulas and cell widths in a spreadsheet.

Productivity applications such as Word and Excel are where most people find macros to be useful.

A Word of Warning

Before using macros, you’ll want to make sure the security settings in both Word and Excel are set not to run macros automatically.

In the early days, any macro that was embedded in a document or spreadsheet could automatically run when the file was opened, which led to malicious use of the tool.

Hackers started sending rigged documents as attachments in emails with what appeared to be important information that should be read immediately.

Imagine getting an email that claimed to be from the HR department of your company with the announcement of layoffs that included a document explaining the termination process.

Anyone who fell for these types of scams would have been compromised by the malicious macro hiding in the document, which is why they should be disabled by default.

Enable Macros Safely

Microsoft has implemented a security feature that blocks macros from running when they come from the Internet which generates a warning message: “SECURITY RISK Microsoft has blocked macros from running because the source of this file is untrusted.”

Despite this protection, you’ll still want to check how your programs handle macros to make sure they are set to a safe option.

It should be set to allow you to enable macros on a case-by-case basis, mainly for the macros in documents that you create.

In Word, click on File, then on Options (at the bottom left), then on Trust Center (bottom left), then on the ‘Trust Center Settings’ button to see your current Macro Settings.

Make sure it’s set to ‘Disable all macros with notification.’

The process for Excel is slightly different: File > Options > Trust Center > Trust Center Settings > Macro Settings.

Excel uses Visual Basic Application (VBA) for its macros, which makes them more powerful and more dangerous.

Make sure it’s set to ‘Disable VBA macros with notification’ so you have the same case-by-case option to enable them.

Creating a Macro

To create a macro in Word or Excel, click on the ‘View’ menu, then on the down arrow below the Macros icon, then on Record Macro to open the ‘Record Macro’ dialogue box.

This is where you will give your macro a name and in Word, choose whether you want to assign it to a button or a keyboard combination (Excel uses keyboard shortcuts).

The detailed instructions on all versions of Word are posted here and for Excel here.

Advanced Options

If you’d like to use macros in just about anything you do on your computer,  check out tools such as AutoHotkey for Windows or the built-in Automator for Mac users.

Data Doctors

Man checks Wi-Fi connection...

Ken Colburn, Data Doctors

Computer tips: How Wi-Fi 7 can be beneficial and why you should consider the upgrade

Now, here’s the big question: Do you really need to upgrade to Wi-Fi 7? The answer depends largely on how you use the internet and what kind of performance you expect from your wireless network.

7 days ago

Which backup option is better: cloud storage or cloud backup?...

Data Doctors

How to compare and contrast cloud storage and cloud backup

So you're considering both cloud storage and cloud backup. Not sure which backup option is better for you? This guide can help.

14 days ago

If you’re on your computer all day long, you’ll wonder how you ever lived without it once you s...

Ken Colburn, Data Doctors

Here are some benefits of having dual displays

If you’re on your computer all day long, you’ll wonder how you ever lived without it once you start having dual displays.

21 days ago

A person holding up their smartphone....

Ken Colburn, Data Doctors

Here are the tips on how to enable crash detection on mobile devices

Various mobile devices have different ways to enable crash detection and here are the tips to enable them on certain devices.

28 days ago

Various versions of Windows include the option to use BitLocker, which is Microsoft’s built-in en...

Ken Colburn, Data Doctors

Here are the pros and cons of using Windows BitLocker

Various versions of Windows include the option to use BitLocker, which is Microsoft’s built-in encryption tool. Here are pros and cons.

1 month ago

College students will be fully responsible for managing their devices independently and preparing t...

Ken Colburn, Data Doctors

Here are cybersecurity tips for college students

College students will be fully responsible for managing their devices independently and preparing them for the most common dangers is important.

1 month ago

Sponsored Articles

...

Sanderson Ford

Sanderson Ford joining Arizona Diamondbacks during playoff race

The Arizona Diamondbacks are in the thick of the 2024 MLB playoff race and Sanderson Ford is going along on the ride with them.

...

Sanderson Ford

3 storylines to get you revved up for the 2024 Arizona Cardinals

Arizona Cardinals training camp is just a couple weeks away starting on July 25, and Sanderson Ford is revved up and ready to go.

...

Day & Night Air Conditioning, Heating and Plumbing

Beat the heat, ensure your AC unit is summer-ready

With temperatures starting to rise across the Valley, now is a great time to be sure your AC unit is ready to withstand the sweltering summer heat.

Here’s how to use macros safely and effectively