sort out your tables

My colleague Duane Arl was very frustrated that his tables kept appearing with the writing above the middle of the line, even though he set his table to be centre justified:

‘Why is everything floating up near the top?’ he would screech. ‘Well, Duane, it’s because in Paragraph your tables have a line spacing of 1.5 – if you set the line spacing to 1 line you will have your data in the middle:

‘But my whole document is spaced at 1.5 lines – do I have to go through and change each table individually?’ ‘No, Duane,’ I replied, ‘Just run the macro below over your document – the whole thing will stay at a spacing of 1.5 but your tables will be spaced at 1 line and all your data will be in the middle.’

Dim J As Integer
    Dim iTableNum As Integer
    Dim oTbl As Table

    Selection.Bookmarks.Add ("TempBM")
    For J = 1 To ActiveDocument.Tables.Count
        Set oTbl = ActiveDocument.Tables(J)
        oTbl.Select
        If Selection.Bookmarks.Exists("TempBM") Then
            iTableNum = J
            Exit For
        End If
        
      With Selection.ParagraphFormat
        .LeftIndent = CentimetersToPoints(0)
        .RightIndent = CentimetersToPoints(0)
        .SpaceBefore = 0
        .SpaceBeforeAuto = False
        .SpaceAfter = 0
        .SpaceAfterAuto = False
        .LineSpacingRule = wdLineSpaceSingle
        .Alignment = wdAlignParagraphJustify
        .WidowControl = True
        .KeepWithNext = False
        .KeepTogether = False
        .PageBreakBefore = False
        .NoLineNumber = False
        .Hyphenation = True
        .FirstLineIndent = CentimetersToPoints(0)
        .OutlineLevel = wdOutlineLevelBodyText
        .CharacterUnitLeftIndent = 0
        .CharacterUnitRightIndent = 0
        .CharacterUnitFirstLineIndent = 0
        .LineUnitBefore = 0
        .LineUnitAfter = 0
        .MirrorIndents = False
        .TextboxTightWrap = wdTightNone
        .CollapsedByDefault = False
    End With
        
    Next J
    ActiveDocument.Bookmarks("TempBM").Select
    ActiveDocument.Bookmarks("TempBM").Delete

open and close documents in Word more efficiently

If one opens a Word document using File>Open one is taken to the Backstage which was introduced in an ‘upgrade’ in 2013. The Backstage looks like this:

Most of the time one clicks on ‘This PC’. To avoid going to the Backstage ever again click File>Options>Save then check the ‘Don’t show Backstage’ box:

Then put a button on the Quick Access Toolbar as detailed here:

When opening a Word document one clicks on the above button (always visible) and is taken straight away to the action area, instead of clicking three times to navigate there.

If one closes a Word document using the cross at the top right of the screen, Word closes down altogether if the document is the last Word document open. This means that next time one opens a Word document there is a lot of whirring as Word creaks and groans into action again. To avoid this, close the document using Ctrl>W – this closes the document but not Word. The next time one opens a Word document, Word is already in action and the document pings open instantly.

make your equilibrium sign longer

If you type 21CC then Alt>x the Unicode changes to the equilibrium arrow. This arrow is fine in lots of situations:

But sometimes you need a longer equilibrium arrow:

To get the longer equilibrium arrow, select a normal one then Home>Font>Advanced>Scale and change 100% to 300%:

You can make it longer than 300% but it then becomes too thick and bold, though changing the font colour to grey helps.

copy text from a diagram or picture

The method here can be used to convert a pdf to Word. What if you have a diagram or picture or screen dump or paste from the snipping tool which you want to copy the text from and use in Word? This can be done in OneNote. Copy the picture to a page in OneNote and right-click on it. Select the Copy Text from Picture option:

Paste into your Word document with Ctrl+V – this will give a box with all the words in the picture in Word. They will not be very accurate but it’s a better starting point than typing from scratch.

copy 24 items to the clipboard

If I’m writing a resource about magnesium sulfate I don’t want to have to type ‘magnesium sulfate’ every time I need it – I just type it once then thereafter when I need it I select it earlier in the document, Ctrl+C it then Ctrl+V where I need it. But I also want to do that for sodium carbonate. I used to keep moving around in the document doing Ctrl+C it then Ctrl+V to different phrases. Then I realised that the clipboard can hold 24 items at the same time. If I click on the clipboard icon in word I get this display:

Everything I select and Ctrl+C goes to the clipboard until it is full (24 items). The clipboard window on the left lists all the words or phrases I have copied. All I have to do is click on one and it appears at the cursor in the document.

If you go to Options at the bottom of the window you can tick the ‘Show Office Clipboard When Ctrl+C pressed Twice’ option:

This means that when you are writing a Word document and select a word or phrase then Ctrl+CC you will have the Clipboard window immediately open on the left.

select a random name from a class list

This is not a Word top tip but an Excel top tip. If you want to select a name at random from a class list in Excel, for example to ensure that you are randomising questions or asking students to read out loud, type this formula into a cell near the list:

=INDEX($A$2:$A$25,RANDBETWEEN(1,ROWS($A$2:$A$25)),1)

Every time you click on F9 (or Fn+F9) the cell will be populated by a name at random from the list.

back up the normal template

I put all my Building Blocks and macros on the normal template. Next time the IT Dept issues new laptops I would lose all my hard work and have to start again if I hadn’t backed up my normal template so that I could save that to the new laptop.

By default the normal template is stored at:

C:\Users\ user name \AppData\Roaming\Microsoft\Templates

Every so often I save the normal template on OneDrive so that I can instal it on any other computer I use.

Charles Kenyon has a macro which will automatically save the normal template:

http://www.addbalance.com/word/normal-backup.htm

run a macro using a keyboard shortcut

My most-used macros are on the Quick Access Toolbar so they can be run with one click. But the Quick Access Toolbar can only accommodate a certain number of macros and after that you have to scroll to find the one you want. Another way of running macro is to assign a keyboard shortcut: in the same way that Ctrl+C will copy the selection, Ctrl+SS for me will lower all the subscripts by 2 points and raise all the superscripts by 2 points as described here. All single letters are already used as shortcuts so, instead of reassigning them, I use two letters.

To assign the keyboard shortcut Ctrl+MB to the macro to replace the Cambria Math font in equations with Arial font as described here, follow these steps:

Select File>Options>Customise Ribbon to bring up this:

Under Choose commands from select Macros then at the bottom of the page find Keyboard shortcuts and click Customise:

Under Specify a command in the left-hand table select Macros and in the right-hand table select the macro to which you want to assign a keyboard shortcut. Under Press new shortcut key enter the shortcut you want:

Then press assign and close. The macro then runs when Ctrl+MB is pressed.

list all the keyboard shortcuts

Using keyboard shortcuts saves a lot of time when making Word resources – it’s a lot quicker to subscript a number by pressing Ctrl and = than it is to go to the Home page then click on the subscript button. To get a list of all the keyboard shortcuts on your computer do the following:

1.    Press Alt+F8 (or Alt+Fn+F8). Word displays the Macros dialog box listing all your macros.

2.    Using the Macros In drop-down list, choose Word Commands.

3.    In the list of commands at the top of the dialog box, choose ListCommands.

4.    Click Run. You’ll see the List Commands dialog box.

5.    Select the first option to see which keyboard shortcuts are set up on your computer. A new document is created which contains a table of all your shortcuts.