Article ID: 237356 - Last Review: May 7, 2007 - Revision: 2.1 HOW TO: Access Sample Macros for Word 2000This article was previously published under Q237356 On This PageSUMMARY
Microsoft Word 2000 has the following three templates that contain sample macros:
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. Access Word Sample MacrosTo access the Word sample macros, follow these steps:
Batch Conversion Wizard.wizThe Batch Conversion Wizard template is a template that contains sample macros to perform a batch conversion of selected files to or from Word format. It is installed on first use by default. The Batch Conversion Wizard is installed to the following folder by default:
C:\Program Files\Microsoft Office\Templates\1033
To run the Batch Conversion Wizard, follow these steps:
Macros9.dotThe Macros9.dot template contains the following sample macros.
Macro Description
---------------------------------------------------------------------
AutoCorrect Utility Allows you to back up, restore, and move
AutoCorrect entries.
Automation Examples Simple macro examples demonstrating
automation between Word, Excel, and
Access.
Find Symbol Allows you to find and replace symbols
in your documents.
Font Sample Generator Generates a sample document of all the
printable fonts on your system in 12
point.
Insert Footnote A wizard interface that helps you
create footnotes in the MLA or Chicago
Manual of Style format.
Modify Address Layout Modifies the layout of an address that
you insert when you use the Personal
Address Book, Schedule+, or Outlook
Contacts List.
Save Reminder Install Installs into your Word Startup folder
a template containing a macro that
periodically reminds you to save your
work.
WordPerfect Data Formatter Converts certain types of non-standard
WordPerfect data files and labels into
a format that can be used as a mail
merge data file.
How to Install the Macros9.dot TemplateTo install the Macros9.dot template, follow these steps:
How to Use the Macros9.dot TemplateTo use the Macros9.dot template, follow these steps:
233396
(http://support.microsoft.com/kb/233396/EN-US/
)
WD2000: How to Reduce the Chances of Macro Virus Infection
192073
(http://support.microsoft.com/kb/192073/EN-US/
)
WD2000: Error Message: The Macros in the Project Are Disabled
Support9.dotThe Support9.dot template includes the following sample macros created by Microsoft Technical Support:
Macro Description
----------------------------------------------------------------------
Edit Conversion Options Allows you to customize unique settings for
text converters and graphics filters.
Registry Options Can be used to modify Word settings that are
stored in the Windows registry.
To Install Support9.dotFollow these steps to install the Support9.dot template:
Microsoft Office 2000 Premium Setup completed successfully.
For more information about installing (or removing) individual components in Word, click Microsoft Word Help on the Help menu, type How do I install components? in the Office Assistant or the Answer Wizard, and then click Search to view the topic.How to Use Support9.dotUse one of the following methods to use the macros in the Support9.dot template.Method 1: Add the Support9.dot Template as a Global Add-in Follow these steps to run the Support9.dot template as an add-in:
Method 2: Open the Support9.dot Template
Edit Conversion OptionsWith the Edit Conversion Options macro, you can customize unique settings for graphics filters.
Conversion Options
------------------------------------------------------------------------
Graphics Interchange Format SetMetafileBackgroundTransparent=No
(Export) ShowProgressDialog=Yes
ShowMetafileBackgroundTransparent=No
JPEG File Interchange Format ShowProgressDialog=Yes
(Export) Quality=0x0000004b
Graphics Interchange Format ShowProgressDialog=Yes
(Import)
JPEG File Interchange Format ShowProgressDialog=Yes
(Import)
Macintosh PICT ShowProgressDialog=Yes
PC Paintbrush ShowProgressDialog=Yes
Tag Image File Format ShowProgressDialog=Yes
Windows Bitmap ShowProgressDialog=Yes
Registry OptionsThe Registry Options macro can be used to modify Word settings that are stored in the Windows registry. The following table lists each of the options available in the macro and a brief description of its purpose.Word 2000 Options
Option Description
------------------------------------------------------------------------
AutoSave-Path Sets the folder where AutoRecovery save files
are written to. If you use Microsoft Word on
a computer running Microsoft Windows 95 or
Windows 98, automatically recovered files are
by default stored in the Windows\Application
Data\Microsoft\Word folder. If you use
Microsoft Windows NT version 4.0 or later, or
you use a computer on which there is more
than one active user profile, automatically
recovered files are stored in the
"\Windows\Profiles\username\Application
Data\Microsoft\Word" folder.
Bak-Extension Sets the default extension for Word backup
files. The default extension is *.wbk.
BitMapMemory Sets the maximum size of the Word bitmap
cache (in KB). If you use many graphics in
your documents, a larger bitmap cache may
improve scrolling and screen redraw speed.
When set to 1, Word automatically
adjusts the bitmap cache size.
CacheSize Sets the size of the Word file cache (in KB).
You may be able to improve the speed of file
I/O and other operations in Word by
increasing the cache size. The minimum and
default cache size is 64 KB.
DateFormat Sets the default data format for the DATE
field. This is used only for backward
compatibility purposes. Word 2000 uses a
different format.
Example: MMMM d, yyyy
DOC-Extension The default extension that is used for
Word documents. The default is *.doc. You
must restart Word for modifications to take
effect.
DOC-Path The default folder that is used for Word
documents. The default is C:\My Documents.
DOT-Extension The default extension that is used for
Word templates. The default is *.dot. You
must restart Word for modifications to
take effect.
INI-Path Path for user options. This is used only for
backward compatibility purposes. Note that
Word 2000 user options are stored in the
Windows registry or internally.
NoFontMRUList Turns on or off the most recently used (MRU)
font list. You must restart Word for the
modifications to take effect. Enter either
0 or 1.
0 - Turn on MRU font list.
1 - Turn off MRU font list.
OLEDOT Specifies the document template used when
creating a document object in Word or
another OLE application.
Picture-Path Sets the default path used when you select
Insert Picture. You must restart Word before
this setting takes effect. You can also
use the File Locations tab (on Tools menu,
click Options) to modify the setting.
ProgramDir Specifies where the Word program files are
located.
Default path: C:\Program Files\Microsoft
Office\Office
SlowShading Allows you to shade graphics by overriding a
special drawing function on some Hewlett
Packard printers. Using this option slows
printing. If a printer does not support this
special drawing function, the switch has no
effect. Enter 0 for No, 1 for Yes.
Startup-Path Sets the path for Word startup files, such as
templates and WLLs to load when starting
Word.
Built-in default path: C:\Windows\Application
Data\Microsoft\Word\Startup
TimeFormat Sets the default time format for the TIME
field. This is used only for backward
compatibility purposes. Word 2000 uses a
different format.
Example: h:mm:ss
Tools-Path Sets a location in which Word searches for
proofing tools, filters, converters, and
certain other components, in the event that
they are not registered properly or cannot
be found in their standard directories.
UpdateDictionaryNumber Specifies the custom dictionary for the
spelling checker; the number corresponds
to the order of the custom dictionary
in the list in the Custom Dictionary
box in the Options dialog box of the
Spelling & Grammar tab.
User-Dot-Path Path for user templates. Note that when
this setting is changed for Word, it
affects all the Microsoft Office 2000
applications, including the Office Shortcut
bar.
Built-in default path: C:\Windows\Application
Data\Microsoft\Templates
Workgroup-Dot-Path Path for workgroup templates. You can specify
a UNC path.
For example: \\Group\User\Mytmplts
Option Description
------------------------------------------------------------------------
Appdir The Equation Editor program folder. Equation
Editor must be installed and run one time
for this and other Equation Editor
settings to appear.
CustomZoom The Custom Zoom setting. This only takes
effect when Equation Editor is started in a
separate window with the ForceOpen setting.
ForceOpen Forces Equation Editor to open in its own
separate window. Enter 0 or 1.
0 - Open in place.
1 - Open in a separate window.
ShowAll Shows or hides non-printing characters.
ToolBarDocked Is the toolbar docked? 1 is Yes, 0 is No.
ToolBarDockPos Position of the toolbar when it is docked:
1 - Top of the EQ Editor window.
2 - Bottom of the EQ Editor window.
ToolBarShown Is the toolbar shown? 1 is Yes, 0 is No.
ToolBarWinPos Position of the toolbar when it is not
docked, specified in X, Y coordinates
with the upper left corner as the origin.
The units are in pixels.
Version Equation Editor version number.
Zoom Standard zoom size selected on the View menu.
| Article Translations
|
Back to the top
