The samples
that you create in this book include macro-enabled content. When
you save your Microsoft Office documents, you must use the file extensions
for macro-enabled content. These file extensions are .xlsm in Excel,
.docm in Word, and .pptm in PowerPoint. When you open a Microsoft
Office document that includes macro-enabled content, you want to be
notified that this content is disabled.
To receive
these notifications when you open macro-enabled content in Microsoft
Excel, Word, or PowerPoint:
-
In Microsoft
Office 2013 or 2010, select
File
Options.
In Microsoft
Office 2007, click
![Microsoft Office button](images/buttonoffice.png)
and select
product-name Options,
where
product-name is
Excel, Word, or PowerPoint.
The product-name Options dialog
box appears, where product-name is
Excel, Word, or PowerPoint.
-
In the selection
pane, click Trust Center. The Trust
Center panel appears.
-
Click Trust
Center Settings. The Trust Center dialog
box appears.
-
In the selection
pane, click Macro Settings. The Macro
Settings panel appears.
-
Select Disable
all macros with notification, and then click OK.
-
Click OK to
close the product-name Options dialog
box.
-
Close and
restart Microsoft Excel, Word, or PowerPoint to activate this option.
Now, when
you open a Microsoft Office document that contains macro-enabled content,
you are warned that some active content has been disabled. To enable
the content in your Microsoft Office document:
-
In the warning
message, click Options. The Microsoft
Office Security Options dialog box appears.
-
Select Enable
this content, and then click OK.