Few MS Word
Tools
Content:
• Creating hypertext links
• Macro
• Drop cap
Creating hypertext links (hyperlinks) in MS Word
• Select the text or image you want to use as a hyperlink.
• Click Insert tab -> Links -> (Expand the Links group, if necessary) -> Hyperlink.
• The shortcut key for this step is ctrl + K.
• Select the type of object you want to link to on the left side of the dialog box
• Specify where the link
should lead to.
• An external file or
webpage, a heading or
bookmark in the
document, a new file
name, or an email
address.
• Click OK.
Macros in Microsoft Word
• Macros allow to automate frequently used formatting settings
• Macros are especially useful when the same formatting changes are required
over and over again to multiple documents
• Rather than repeating all of those steps every single time, a macro allows to
record the steps and then execute all of them at once using a single button or
keyboard command. Example, adjusting the page layout to a specific format
• Time-saving potential with well-developed macros is huge.
• Two types of macros are there
• A global macro is available to all documents - a macro that adds company
name and file details to the footer should be created as global macro since
it should be available to all the documents
• A local macro is available to only a particular document or template for
which it is created – a monthly report document that needs to have
information imported into it from other sources may be created as a local
macro
Setting macro security:
• Recording or writing macros allows one to hack into Word and manipulate the application
to suit his needs.
• Consequently, macros become a potential source of viruses
• Microsoft has Trust Centre allows to enable or disable macros based on whether or not
they are stored in a trusted location or have a digital signature – reduces the risk of viruses
• To Work with macros, first make the Developer tab visible (if NOT done)
• File -> Options -> Customize Ribbon -> Developer for Customize the ribbon -> [OK]
• By default, all macros are disabled unless they are in a trusted location...
• To set the new trusted location
• Developer -> Macro Security -> Trusted locations
• Click on [Add new location] to open the Microsoft Office Trusted Location dialog box
• Click on [Browse] then navigate to and select the targeted location
• Click on [OK] – the course files folder will be added to the list of Trusted Locations...
• Click on [OK] to close the dialog box, then save and close the document
• Demonstration…
Saving a document as macro-enabled
• The default document format of .docx does not allow macros to be saved with
the document
• To ensure that macro code can be saved, one must change the document type to
.docm which is known as a Word Macro-enabled Document
• Recording a macro – example: to insert today’s date do the following:
• Developer -> Record Macro -> Record Macro dialog box will be opened
• Type DateInsert in Macro name (no spaces)
• Click on the drop arrow for Store macro in and click on the name of the current
document -> Click in Description and type Inserts the author’s name and today’s
date.
• Click on [OK] to start recording. The Record Macro tool will change to a Stop
Recording tool...
• Carefully perform each of the steps listed in the macro sequence
Recording macros
• Note:-
• Macro can assigned to either button or keyboard. Both can’t be assigned at a time
• The macro recorder does not allow you to use the mouse on the document itself.
You must use keystrokes.
• To record InsertDate macro,
• First place the cursor where the date to be inserted.
• On the Insert tab, in the Text group, click Date & Time.
• In the Date and time dialog box, select the format and click OK.
• Select the Update automatically check box if automatic update is required.
• Click on Stop Recording to stop creating the macro
• The steps are now recorded – the next step will be to test-drive the macro
• Use the shortcut key (if assigned) OR go to Developer -> Macros, and then select the
macro which needs to run. Check the performance
Assigning a macro to the toolbar
• Running a macro from the Macros dialog box is not efficient – the time required to open
the Macros dialog box is considerable
• One way to run macros faster is to assign the macro to a button on the Quick Access
Toolbar, which is always visible - let the macro run by simply clicking on the button
• To assign the macro in the toolbar
• Click on the drop arrow for Customize Quick Access Toolbar on the Quick Access Toolbar
and select More Commands to open the Word Options dialog box
• Click on the drop arrow for Choose commands from and select Macros
• Click on Project.NewMacros.DateInsert then click on [Add] – the macro will be added to
the Quick Access toolbar list...
• Click on [Modify] to display the Modify Button dialog box
• Click on an icon of your choice then edit the Display name so that it reads Name and
Date, then click on [OK]
• Click on [OK]
• The new button will appear in the Quick Access Toolbar
Exercise:
• Download an image of your favorite animal and place it to the same folder where
you are saving your current work. Create a MS Word document and type the
name of your favorite animal. Create a hyperlink on this word to link to the image
you have downloaded. Type the same name again (or you can name another
favorite animal). Search for a good quality description of that animal in the
internet and link the typed text with the page describing the animal.
• Create a macro in your document to write your name (or put your signature) in
the end of a page. Assign this macro to the toolbar and associate a meaningful
icon to it. Test your macro performance.
Drop cap in MS Word
• A drop cap (dropped capital) is a large capital letter used as a decorative
element at the beginning of a paragraph or section.
• The size of a drop cap is usually two or more lines.
To Add a drop cap
• Select the first character of a paragraph.
• Go to INSERT > Drop Cap
• Select the drop cap option you want.