Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.



Windows 7: Word 2010 - Text Box

19 Jun 2012   #1

Windows 7 Ultimate x64
 
 
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 System SpecsSystem Spec
19 Jun 2012   #2

Windows 7 Ultimate x64
 
 

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 System SpecsSystem Spec
19 Jun 2012   #3

Windows 7 Ultimate x64
 
 
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 System SpecsSystem Spec
.


19 Jun 2012   #4

Windows 7 Ultimate x64
 
 

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 System SpecsSystem Spec
19 Jun 2012   #5

Windows 7 Ultimate x64
 
 

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 System SpecsSystem Spec
19 Jun 2012   #6

Windows 7 Ultimate x64
 
 

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 System SpecsSystem Spec
21 Jun 2012   #7

Windows 7 Ultimate x64
 
 

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 System SpecsSystem Spec
22 Jun 2012   #8

Windows 7 Ultimate x64
 
 

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 System SpecsSystem Spec
22 Jun 2012   #9

Windows 7 Ultimate x64
 
 

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
Name:  MacroStop.jpg
Views: 1380
Size:  18.0 KB

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
Name:  QuickAccessToolbar.JPG
Views: 1382
Size:  9.9 KB
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
Name:  CustomRibbonGroup.JPG
Views: 3
Size:  27.9 KB

Or Tab
Name:  CustomRibbonTab.JPG
Views: 1383
Size:  12.8 KB

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.


My System SpecsSystem Spec
22 Jun 2012   #10

Windows 7 Ultimate x64
 
 

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 System SpecsSystem Spec
Reply

 Word 2010 - Text Box





Thread Tools




Our Sites

Site Links

About Us

Find 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 05:59 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33