Post on 17-Jan-2016
transcript
Chapter 23
Copyright 2003, Paradigm Publishing Inc.
CHAPTER23
BACK NEXT END
23-2
LINKS TO
OBJECTIVES• Record, Run, Pause,
and Delete Macros• Assign to a Keyboard
Command• Assign to a Toolbar• Fill-in Fields• Visual Basic Editor• Copy and Rename a
Macro Project• Commands Review
FORMATTING WITH MACROS
Signature: Microsoft Word 2003
Copyright 2003, Paradigm Publishing Inc.
CHAPTER23
BACK NEXT END
23-3
LINKS TO
OBJECTIVES• Record, Run, Pause,
and Delete Macros• Assign to a Keyboard
Command• Assign to a Toolbar• Fill-in Fields• Visual Basic Editor• Copy and Rename a
Macro Project• Commands Review
Performance ObjectivesPerformance Objectives
• Record, run, pause, and delete macros• Assign a macro to a keyboard command• Assign a macro to a toolbar• Record and run a macro with Fill-in
fields• Edit a macro using the Visual Basic
Editor• Copy and rename a macro project
Copyright 2003, Paradigm Publishing Inc.
CHAPTER23
BACK NEXT END
23-4
LINKS TO
OBJECTIVES• Record, Run, Pause,
and Delete Macros• Assign to a Keyboard
Command• Assign to a Toolbar• Fill-in Fields• Visual Basic Editor• Copy and Rename a
Macro Project• Commands Review
Macro ConceptsMacro Concepts
Macro = collection of commands used to Macro = collection of commands used to make a large programming job easier make a large programming job easier
and save time.and save time.
two basic stepstwo basic steps
recordingrecording runningrunning
all keys pressed andmenus and dialog boxesdisplayed become part of
macro
applies the macroformatting
Copyright 2003, Paradigm Publishing Inc.
CHAPTER23
BACK NEXT END
23-5
LINKS TO
OBJECTIVES• Record, Run, Pause,
and Delete Macros• Assign to a Keyboard
Command• Assign to a Toolbar• Fill-in Fields• Visual Basic Editor• Copy and Rename a
Macro Project• Commands Review
Recording a MacroRecording a Macro
OROR
type a name
type a description
specify where to store
click
Tools, Macro, Record New Macro
double-click REC button on Status bar
Copyright 2003, Paradigm Publishing Inc.
CHAPTER23
BACK NEXT END
23-6
LINKS TO
OBJECTIVES• Record, Run, Pause,
and Delete Macros• Assign to a Keyboard
Command• Assign to a Toolbar• Fill-in Fields• Visual Basic Editor• Copy and Rename a
Macro Project• Commands Review
Recording a Macro…/2Recording a Macro…/2
Macro Record Toolbar
Stop RecordingPause Recording
Perform the actions to be recorded Perform the actions to be recorded and then click the Stop Recording and then click the Stop Recording
button.button.
Copyright 2003, Paradigm Publishing Inc.
CHAPTER23
BACK NEXT END
23-7
LINKS TO
OBJECTIVES• Record, Run, Pause,
and Delete Macros• Assign to a Keyboard
Command• Assign to a Toolbar• Fill-in Fields• Visual Basic Editor• Copy and Rename a
Macro Project• Commands Review
Running a MacroRunning a Macro
Tools, Macro, Macros
selectmacro
click
Copyright 2003, Paradigm Publishing Inc.
CHAPTER23
BACK NEXT END
23-8
LINKS TO
OBJECTIVES• Record, Run, Pause,
and Delete Macros• Assign to a Keyboard
Command• Assign to a Toolbar• Fill-in Fields• Visual Basic Editor• Copy and Rename a
Macro Project• Commands Review
Pausing and Resuming a MacroPausing and Resuming a Macro
temporarily suspends recordingtemporarily suspends recording- can perform actions that are not - can perform actions that are not
recordedrecorded
clickPause Recording
button
button changesto Resume Recorder
button
Copyright 2003, Paradigm Publishing Inc.
CHAPTER23
BACK NEXT END
23-9
LINKS TO
OBJECTIVES• Record, Run, Pause,
and Delete Macros• Assign to a Keyboard
Command• Assign to a Toolbar• Fill-in Fields• Visual Basic Editor• Copy and Rename a
Macro Project• Commands Review
Deleting a MacroDeleting a Macro
Tools, Macro, Macros
selectmacro
click
Copyright 2003, Paradigm Publishing Inc.
CHAPTER23
BACK NEXT END
23-10
LINKS TO
OBJECTIVES• Record, Run, Pause,
and Delete Macros• Assign to a Keyboard
Command• Assign to a Toolbar• Fill-in Fields• Visual Basic Editor• Copy and Rename a
Macro Project• Commands Review
Assigning a Macro a Keyboard CommandAssigning a Macro a Keyboard Command
enter a letter plus eitherAlt + Ctrl
Ctrl + ShiftAlt + Shift
Tools, Macro, Record New Macro
some combinations already usedsome combinations already used
Copyright 2003, Paradigm Publishing Inc.
CHAPTER23
BACK NEXT END
23-11
LINKS TO
OBJECTIVES• Record, Run, Pause,
and Delete Macros• Assign to a Keyboard
Command• Assign to a Toolbar• Fill-in Fields• Visual Basic Editor• Copy and Rename a
Macro Project• Commands Review
Assigning a Macro to the ToolbarAssigning a Macro to the Toolbar
drag to a positionon the desired toolbar
Tools, Macro, Record New Macro
remove from toolbar by dragging remove from toolbar by dragging button off toolbar when Customize button off toolbar when Customize
dialog box is opendialog box is open
Copyright 2003, Paradigm Publishing Inc.
CHAPTER23
BACK NEXT END
23-12
LINKS TO
OBJECTIVES• Record, Run, Pause,
and Delete Macros• Assign to a Keyboard
Command• Assign to a Toolbar• Fill-in Fields• Visual Basic Editor• Copy and Rename a
Macro Project• Commands Review
Assigning a Macro to the Toolbar…/2Assigning a Macro to the Toolbar…/2
scroll down andclick Macros to
display commands
Tools, Customize
An existing macro can also be assigned An existing macro can also be assigned to a toolbar.to a toolbar.
Copyright 2003, Paradigm Publishing Inc.
CHAPTER23
BACK NEXT END
23-13
LINKS TO
OBJECTIVES• Record, Run, Pause,
and Delete Macros• Assign to a Keyboard
Command• Assign to a Toolbar• Fill-in Fields• Visual Basic Editor• Copy and Rename a
Macro Project• Commands Review
Recording a Macro with Fill-In FieldsRecording a Macro with Fill-In Fields
while recording, click Insert, Field
scroll downand click
typedesiredprompt
message
Copyright 2003, Paradigm Publishing Inc.
CHAPTER23
BACK NEXT END
23-14
LINKS TO
OBJECTIVES• Record, Run, Pause,
and Delete Macros• Assign to a Keyboard
Command• Assign to a Toolbar• Fill-in Fields• Visual Basic Editor• Copy and Rename a
Macro Project• Commands Review
Editing a MacroEditing a MacroA macro is created with Visual Basic A macro is created with Visual Basic
andandcan be edited using the Visual Basic can be edited using the Visual Basic
Editor.Editor.Tools, Macro, Macros
selectmacro
click
Copyright 2003, Paradigm Publishing Inc.
CHAPTER23
BACK NEXT END
23-15
LINKS TO
OBJECTIVES• Record, Run, Pause,
and Delete Macros• Assign to a Keyboard
Command• Assign to a Toolbar• Fill-in Fields• Visual Basic Editor• Copy and Rename a
Macro Project• Commands Review
Editing a Macro…/2Editing a Macro…/2
edit the macroin this window
Save Normalbutton
Click File, Close and Return to Click File, Close and Return to Microsoft Word when finished.Microsoft Word when finished.
Copyright 2003, Paradigm Publishing Inc.
CHAPTER23
BACK NEXT END
23-16
LINKS TO
OBJECTIVES• Record, Run, Pause,
and Delete Macros• Assign to a Keyboard
Command• Assign to a Toolbar• Fill-in Fields• Visual Basic Editor• Copy and Rename a
Macro Project• Commands Review
Organizing MacrosOrganizing Macros
• Macros are inserted in the Normal Macros are inserted in the Normal template by defaulttemplate by default– stored in a macro project named
NewMacros– macro project is a collection of macros
stored in a document or template– can be copied and renamed at the
Organizer dialog box
Copyright 2003, Paradigm Publishing Inc.
CHAPTER23
BACK NEXT END
23-17
LINKS TO
OBJECTIVES• Record, Run, Pause,
and Delete Macros• Assign to a Keyboard
Command• Assign to a Toolbar• Fill-in Fields• Visual Basic Editor• Copy and Rename a
Macro Project• Commands Review
Copying and Renaming a Macro ProjectCopying and Renaming a Macro Project
Tools, Macro, Macrosselectmacro
click
Copyright 2003, Paradigm Publishing Inc.
CHAPTER23
BACK NEXT END
23-18
LINKS TO
OBJECTIVES• Record, Run, Pause,
and Delete Macros• Assign to a Keyboard
Command• Assign to a Toolbar• Fill-in Fields• Visual Basic Editor• Copy and Rename a
Macro Project• Commands Review
Copying and Renaming a Macro Project…/2Copying and Renaming a Macro Project…/2
click Macro
click
when it is copied, it can be renamed
Copyright 2003, Paradigm Publishing Inc.
CHAPTER23
BACK NEXT END
23-19
LINKS TO
OBJECTIVES• Record, Run, Pause,
and Delete Macros• Assign to a Keyboard
Command• Assign to a Toolbar• Fill-in Fields• Visual Basic Editor• Copy and Rename a
Macro Project• Commands Review
Commands ReviewCommands Review
How do you display the Macros dialog box?
Tools, Macro, Macros
Copyright 2003, Paradigm Publishing Inc.
CHAPTER23
BACK NEXT END
23-20
LINKS TO
OBJECTIVES• Record, Run, Pause,
and Delete Macros• Assign to a Keyboard
Command• Assign to a Toolbar• Fill-in Fields• Visual Basic Editor• Copy and Rename a
Macro Project• Commands Review
Commands ReviewCommands Review
How do you display the Record Macro dialog box?
ORORTools, Macro, Record New Macro
double-click REC button on Status bar
Copyright 2003, Paradigm Publishing Inc.
CHAPTER23
BACK NEXT END
23-21
LINKS TO
OBJECTIVES• Record, Run, Pause,
and Delete Macros• Assign to a Keyboard
Command• Assign to a Toolbar• Fill-in Fields• Visual Basic Editor• Copy and Rename a
Macro Project• Commands Review
Commands ReviewCommands Review
How do you display the Customize dialog box?
Tools, Customize
Copyright 2003, Paradigm Publishing Inc.
CHAPTER23
BACK NEXT END
23-22
LINKS TO
OBJECTIVES• Record, Run, Pause,
and Delete Macros• Assign to a Keyboard
Command• Assign to a Toolbar• Fill-in Fields• Visual Basic Editor• Copy and Rename a
Macro Project• Commands Review
Commands ReviewCommands Review
How do you display the Field dialog box?
while recording, click Insert, Field
Copyright 2003, Paradigm Publishing Inc.
CHAPTER23
BACK NEXT END
23-23
LINKS TO
OBJECTIVES• Record, Run, Pause,
and Delete Macros• Assign to a Keyboard
Command• Assign to a Toolbar• Fill-in Fields• Visual Basic Editor• Copy and Rename a
Macro Project• Commands Review
Commands ReviewCommands Review
How do you display the Visual Basic Editor?
Tools, Macro, Macrosselectmacro
click
Copyright 2003, Paradigm Publishing Inc.
CHAPTER23
BACK NEXT END
23-24
LINKS TO
OBJECTIVES• Record, Run, Pause,
and Delete Macros• Assign to a Keyboard
Command• Assign to a Toolbar• Fill-in Fields• Visual Basic Editor• Copy and Rename a
Macro Project• Commands Review
Commands ReviewCommands Review
How do you display the Organizer dialog box?
Tools, Macro, Macrosselectmacro
click
Copyright 2003, Paradigm Publishing Inc.
CHAPTER23
BACK NEXT END
23-25
LINKS TO
OBJECTIVES• Record, Run, Pause,
and Delete Macros• Assign to a Keyboard
Command• Assign to a Toolbar• Fill-in Fields• Visual Basic Editor• Copy and Rename a
Macro Project• Commands Review
Coming NextComing Next
MANAGING DOCUMENTS