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

TikTok app hand using smartphone...

Data Doctors

What’s next if TikTok shuts down?

TikTok, with its addictive algorithm, has become a cultural phenomenon. With it possibly shutting down in the U.S., many wonder: What's next?

5 days ago

Copilot+ PC technology computers electronics...

Data Doctors

Is a Copilot+ PC Worth Buying?

If you're shopping and looking at different electronics on the market, you might come across the Copilot PC+. Here are details you should know.

12 days ago

Organizing computer cables of of your 2025 resolutions?...

Data Doctors

Sick of messy computer cables cluttering your carpet? Try these easy cable organization tips

If you're wanting to get better at organizing computer cables in the new year, here are a few technological tools and tricks to check out.

19 days ago

Windows voice typing...

Ken Colburn, Data Doctors

Here’s how effective Windows voice typing is

The ‘voice typing’ feature, including on Windows, is a tool that can be very useful for those who are tasked with inputting text throughout the day.

26 days ago

Video conferencing 2025 tips: How good is a Chromebook?...

Data Doctors

Should you use Chromebooks for video conferencing?

Should you use a Chromebook for your video conferencing needs? It's a complex issue with different technological factors to consider.

1 month ago

FBI warning about text messaging: 4 tech tips to know...

Data Doctors

What’s up with the new FBI warning about text messages?

Did you just get an FBI warning about text messaging? Even if you aren't a government worker, your data could be at risk. Follow these safety steps.

1 month ago

Sponsored Articles

...

Bright Wealth Management

How to start your retirement planning early and avoid costly mistakes

Retirement planning can feel overwhelming, but with the right guidance, you can avoid costly pitfalls.

...

Bright Wealth Management

How to save money on retirement planning following 2024 election

PHOENIX -- With the 2024 election over, economic changes could impact how people plan for retirement as 2025 is on the horizon.

...

Morris Hall

West Hunsaker, through Morris Hall, supports Make-A-Wish Foundation in Arizona

KTAR’s Community Spotlight this month focuses on Morris Hall and its commitment to supporting the Make-A-Wish Foundation in Arizona.

Here’s how to use macros safely and effectively