Word 2010 - Text Box

Page 1 of 2 12 LastLast

  1. Posts : 5
    Windows 7 Ultimate x64
       #1

    Word 2010 - Text Box


    Can I sort of standardize text boxes for a specific document, i.e. whenever a new textbox is inserted it always has the same height and width and is always on the same position relative to the left margin of the document?

    Markus
      My Computer


  2. Posts : 640
    Windows 7 Ultimate x64
       #2

    Yes. Format a text box as you like including postition then select the text box. Clicking one of the points/dots/little circles in the corner of the text box makes it easier to select it and not the text inside.

    Once you have it selected click the text box icon in the ribbon and you should have the option "Save Selection to Text Box Gallery", fill out the details and now you have your text box template.

    If you left the category as default (General) it'll show at the bottom below the built-in text boxes the next time you click the text box icon.
      My Computer


  3. Posts : 5
    Windows 7 Ultimate x64
    Thread Starter
       #3

    Two more questions on Text Boxes in Word 2010


    Dear Duzzy,

    thank you ever so much for the very quick and very useful reply.
    Just two more short questions:

    1) in order to have it (as a kind of commentary) left to the text which is commented, I have to be with the cursor exactly at the position (relatively to the height of the page) where I want the text box to have?

    2) can I introduce a short cut for inserting a new text box (ie the one I have formatted) instead of finding it always at the end of text box templates in the ribbon?

    Markus
      My Computer


  4. Posts : 640
    Windows 7 Ultimate x64
       #4

    1) I think yes. I'm not entirely sure what you mean but it would probably depend on the Text Wrapping options as well. All I can suggest is set the Text Wrapping to what you want then play around until you get it right.

    2) I had a quick look but the best I could come up with was creating a macro to insert the Text Box and adding either a Keyboard shortcut or Toolbar Button assigned to the macro.

    To create the macro I used the Macro Recorder. Start recording and insert your text box then stop recording. I then had to manually edit the macro and delete the first line (ActiveDocument.Shapes.Range........).
      My Computer


  5. Posts : 5
    Windows 7 Ultimate x64
    Thread Starter
       #5

    Again thank you,

    one last thing (I hope) I find a bit strange though: The textboxes have a frame around them. I thought this would be the easiest thing to have the box "without borders" but I can't get it away.
      My Computer


  6. Posts : 640
    Windows 7 Ultimate x64
       #6

    2 ways.

    1) Right click the Text Box and select "Format Shape" at the bottom of the right click menu. Select Line Color > No Line.

    2) With the Text Box selected you should get a new tab on the Ribbon named "Drawing Tools - Format", it should be selected by default when you select the Text Box.
    In this tab under the section "Shape Styles" you should find "Shape Outline". Click this and select "No Outline" under the standard colors.
      My Computer


  7. Posts : 5
    Windows 7 Ultimate x64
    Thread Starter
       #7

    Dear Duzzy,

    sorry I did not reply yesterday. I was not in my office (child ill).
    Thank you again for the outline advice (no line).
    It is just that with the Macro I do not succeed - I never did this before in fact.
    What do you mean with "Insert your Text Box" after having started recording?

    Thanks Mecchi
      My Computer


  8. Posts : 640
    Windows 7 Ultimate x64
       #8

    Ok first I found a problem with the Macro. When I closed Word and re-opened it the Macro would no longer work. It seems to be a problem if you save your custom text box in the "Building Blocks.dotx" but seems to work ok if you save it in the Normal Template (Normal.dotm). Here is an image that should hopefully be able to explain how to move your existing custom text box to the Normal Template.Word 2010 - Text Box-textboxproperties.jpg
    1. Rick click your custom text box
    2. Make sure your custom text box is selected
    3. Click edit properties
    4. Change to Normal.dotm
    5. Click OK then Close

    Macro creation in next post.
      My Computer


  9. Posts : 640
    Windows 7 Ultimate x64
       #9

    Recording the Macro

    1. On the Ribbon click the View tab > Macros > Record Macro

    2. Type Macro Name (No Spaces) and description (optional)

    3. Store in Normal Template to make it available to all documents

    4. Create Keyboard Shortcut and/or Button if desired (Read below about button creation)
    EDIT: You can only create one of these when recording a macro. If you wish to create both then you can create one here then the other after. Creating the button after is the same as described later except opening the Customize Ribbon/Quick Access. This can be opened from File > Options > Customize Ribbon or Quick Access Toolbar.
    This post should explain how to create a Keyboard shortcut after.

    5. Click ok to start recording the Macro

    6. On the Ribbon click the Insert tab

    7. Click text box then scroll down and select your custom text box. Now you should have your text box inserted on the page.

    8. Click the stop button on the status bar
    Word 2010 - Text Box-macrostop.jpg

    9. On the Ribbon click the View tab > Macros > View Macros

    10. Select the Macro you just recorded and click edit

    11. You should be presented with the Visual Basic editor and the following code. Bold text will be different depending on the name of the macro, text box name and your User name.
    Code:
    Sub MyTextBoxMacro()
    '
    ' MyTextBoxMacro Macro
    ' My Description
    '
        ActiveDocument.Shapes.Range(Array("Text Box 3")).Select
        Application.Templates( _
            "C:\Users\USERNAME\AppData\Roaming\Microsoft\Templates\Normal.dotm"). _
            BuildingBlockEntries("MyTextBox").Insert Where:=Selection.Range, RichText _
            :=True
    End Sub
    12. Delete the line marked in red ("ActiveDocument.Shapes.Range(Array("Text Box 3")).Select")

    13. Switch back to the document and run the macro to test

    You will notice in the code it references your USERNAME AppData folder. Now it's not necessary but you can change the code to the following
    Code:
    Dim strAppData As String
        strAppData = Environ("AppData")
        
        Application.Templates( _
            strAppData & "\Microsoft\Templates\Normal.dotm"). _
            BuildingBlockEntries("MyTextBox").Insert Where:=Selection.Range, RichText _
            :=True
    If you have any problems with any of the steps just let me know.


    Creating the Button - Quick Access Toolbar

    Under the Record Macro window where you give it a name, description etc... click the Button option under "Assign Macro to". Follow these steps to add to the Quick Access Toolbar
    Word 2010 - Text Box-customquickaccess.jpg
    1. Check your macro is selected
    2. Click Add to add it to the Quick Access Toolbar
    3. Click Modify
    4. Select an icon and give it a display name

    Now if all went well it should show under Quick Access Toolbar like this
    Word 2010 - Text Box-quickaccesstoolbar.jpg
    The display name will show when you hover over it.


    Creating the Button - Ribbon

    Under the Record Macro window where you give it a name, description etc... click the Button option under "Assign Macro to". Your presented with the "Customize the Quick Access Toolbar" window.

    Now you have two options, create a whole new tab or a new group to place your button in. All steps are the same except the first where you choose tab or group.
    Word 2010 - Text Box-customribbon.jpg
    1. First click "Customize Ribbon" on the left.

    2. Click new tab or group. New tabs or groups will be created under the currently selected one although you can move them by dragging them up or down or using the arrows to the right of the scroll bar.

    3. Select Macros in the Commands drop down list and select your macro below.

    4. Make sure you new group or tab is selected on the right and click Add.

    5. Select your tab, group or macro then click rename

    6. Give your item a display name and select an icon. Group or tab icons I have found not to show so you only really have to worry about the Macro icon.

    When your finished click ok and you will start recording the Macro, step 6 under Recording the Macro at the start of this post.

    When finished recording the Macro you should have something like this

    Group
    Word 2010 - Text Box-customribbongroup.jpg

    Or Tab
    Word 2010 - Text Box-customribbontab.jpg

    I hope I've made it as easy as 1,2,3 and havn't missed anything but if you need more help don't be afraid to ask, although I'm going to be busy this weekend so it may take a day or two before I respond.
    Last edited by Duzzy; 22 Jun 2012 at 03:54.
      My Computer


  10. Posts : 5
    Windows 7 Ultimate x64
    Thread Starter
       #10

    Hi Duzzy,

    you make such an effort. I will give it a try.
    Is the macro (if it works) and the formatting of the textbox etc. then document-based or computer-based. i.e. does it only function on my word on my computer or also on sbd. else's if he/she opens the very same doc.
    By the way: where are you?

    Mecchi
      My Computer


 
Page 1 of 2 12 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 16:01.
Find Us