- What I'd like to do is add a title to this document.
And I'm actually starting
with the insertion point right there.
That's where it was when the document was opened.
And after I've inserted a title
I also then want to insert today's date.
And I want to make sure that I modify
all of the text by applying our styles to this document.
Let's begin by firing up the macro recorder.
Three different ways I can do this.
I can go to the Developer tab and choose Record Macro.
I can go to the Review tab and choose Macros, Record Macro.
And both of those choices give me Pause button
as well if I would like.
And the third option, the one I use the most,
is to click the Macro Record button
here on the status bar.
I'm going to click and I need to give this a name.
I'm going to call this "FormatReport".
And don't immediately click Assign Macro
to the button or keyboard because when you do,
you don't get to make another choice in this dialogue box.
I want to store the macro so it is available
to any documents that I create,
because this is a set of formatting that I do frequently.
So I'm going to store this in "Normal.dotm"
And this is to apply, apply body style
and add title and creation date at the top.
If I want to put in a keyboard shortcut for this
I'd click this button, or I can say
I'd like to assign a button to this macro.
We're going to try for a keyboard shortcut.
This is "FormatReport".
What I can do is choose a set of keystrokes
and they'll either be unassigned
or perhaps it's something that I'm willing to give up.
For example, if I do Control + Shift + F for "FormatReport",
that's currently associated with font
if I want to open the font dialogue.
I don't want to give that one away,
so perhaps Alt + Shift + F, insert merge field.
Nope, I use that one too.
Control + Alt + Shift + F, unassigned.
So if I can remember, that's my keyboard shortcut.
I'm going to hold on Alt, Control, Shift and F
to fire up this report format, that works well for me.
And I can click Assign, there we go.
And now I'm going to click Close,
and when I do, the macro recorder has started.
And the clue for that is if I look at my pointer
there's a little icon, and that's not Bad Robot's head,
that is actually a picture of a cassette recorder,
because when we started recording macros
that's what recording media looked like.
I'm going to begin by selecting all of our text
And while I'm recording the macro
I can use my mouse to choose commands
but I can't use it to select text,
I have to use keyboard shortcuts.
If you record a lot of macros
you will know all the keyboard shortcuts, but if not
this is a good time to refer back
to the shortcut document that we created earlier.
I'm going to hold Control and hit A to select all my text,
I'm going to return to the Home tab,
and I'm going to assign Normal.
That looks good.
Now I need to get back to the start of my document,
so that's Control and Home, I'm going to press Enter
and then hit the up arrow to go back up,
and I'm going to enter my title for this,
which is, this is a video report.
Now I want to select all the text on this line.
One way I could do that would be with the mouse,
but that's not what's available to me,
so another key you're going to use a lot is the F8 key.
And that's called extend select.
If I hit the F8 key and then I hit Home,
I've now selected that entire line
and I can assign, for example, the Title style to that line.
To get out of extend select, you hit the escape key.
And now if I hit the down key, I'm in the line below,
hit Home to go back to the start, press Enter again,
go back up again, and I would like to now insert the date
that this document was created on.
Let's go to Insert, Quick Parts, Field,
and here are all the fields that are available to me
and if I wanted things like, you know, date and time,
then here's the create date for this document,
here's the date that this document was last printed,
and here's the date it was last saved,
which would also be a modification date.
So my choice here is, do I want the date
it was built originally, or do I want the date
that it was last saved? After you've chosen
whether you'd like to have the create date, print date,
or save date you can choose whatever format you'd like
and click OK to insert that field code.
This what I'd like my finished document to look like.
I might like to be at the start of the document again
in terms of the position of my insertion point,
so I'm going to hit Control + Home + Home
to go back to the start of my document.
And I'm now going to stop recording.
Now if I had wanted to pause recording
between when I started and now,
remember that that either the View tab or the Developer tab
have a pause button and then I can restart again,
but I'm going to stop either by clicking here
or by clicking the stop button on my status bar.
And having done that I have now finished recording my macro.