How can I select all of the text in Word tables in a document? Initiator des Themas: John Di Rico
|
John Di Rico Frankreich Local time: 08:27 Mitglied (2006) Französisch > Englisch
Hi, I need to select all of the text in a Word document's tables in order to assign an untranslatable attribute (for use with WF) and to confirm a word count. Anyone know how to do this? Thanks! John Di Rico | | |
Buck Niederlande Local time: 08:27 Niederländisch > Englisch
Hi. Move your cursor to the top of the table and move it down until the cursor becomes an arrow, move the arrow down and across the table until all the cells become black. The text is then selected and you can do just about anything you want to with it, including counting the number of words. Hope this helps | | |
patyjs Mexiko Local time: 00:27 Spanisch > Englisch + ... Top left corner. | Mar 28, 2008 |
If you hover the mouse over the top left corner of the table, it will show a small box just outside the table. Clicking here selects the whole table. HTH Paty | | |
John Di Rico Frankreich Local time: 08:27 Mitglied (2006) Französisch > Englisch THEMENSTARTER thanks but... | Mar 28, 2008 |
Thanks Paty, There are more than 30 tables in the document and I was hoping to find a way to select them all at once using find function for example with "highlight all items found in:" checked. John | |
|
|
Ctrl key is your friend | Mar 28, 2008 |
John Di Rico wrote: Thanks Paty, There are more than 30 tables in the document and I was hoping to find a way to select them all at once using find function for example with "highlight all items found in:" checked. John As with Windows in general, use the Ctrl key to select multiple objects, i.e. keep it held down as you select each table in turn (which only works in page view, BTW). | | |
John Di Rico Frankreich Local time: 08:27 Mitglied (2006) Französisch > Englisch THEMENSTARTER thanks Charlie and Buck | Mar 28, 2008 |
I guess I'll have to do it using control... it's too bad you can't highlight all tables to batch process them. Thanks everyone, John | | |
Hynek Palatin Tschechische Republik Local time: 08:27 Englisch > Tschechisch + ...
John Di Rico wrote: it's too bad you can't highlight all tables to batch process them. I think you would have to write a macro to do that. You could also move the cursor to a table and record a simple macro: - select the table (using the following menu items: Table - Select - Table) - apply the required formatting Then assign the macro to a hotkey, manually select each table in the document and press the hotkey. | | |
Hynek Palatin wrote: John Di Rico wrote: it's too bad you can't highlight all tables to batch process them. I think you would have to write a macro to do that. You could also move the cursor to a table and record a simple macro: - select the table (using the following menu items: Table - Select - Table) - apply the required formatting Then assign the macro to a hotkey, manually select each table in the document and press the hotkey. Thanks for that tip, Hynek. How can I erase a macro? I just wrote one to see how it works, but it is the first time I use this feature.
[Editado a las 2008-03-29 11:35] | |
|
|
Hynek Palatin Tschechische Republik Local time: 08:27 Englisch > Tschechisch + ... Erasing macros | Mar 29, 2008 |
LUIS ANTONIO DE LARRAURI wrote: How can I erase a macro? Macros can be erased in MS Visual Basic Editor (Alt+F11 in Word). But I recommend reading help first.
[Upraveno: 2008-03-29 14:04] | | |
|
if you want to change text format | Nov 20, 2012 |
Click on one cell. Press control-A to select all cells. Press control-T and this will bring you to a text formatting box where you can change the font color, size, or type. | | |
If anyone needs it | Nov 22, 2012 |
Here is a simple VBA macro to select all tables in active document: Sub SelectAllTables() Application.ScreenUpdating = False For Each objTable In ActiveDocument.Tables objTable.Range.Editors.Add wdEditorEveryone Next ActiveDocument.SelectAllEditableRanges (wdEditorEveryone) ActiveDocument.DeleteAllEditableRanges (wdEditorEveryone) Application.ScreenUpdating = True... See more Here is a simple VBA macro to select all tables in active document: Sub SelectAllTables() Application.ScreenUpdating = False For Each objTable In ActiveDocument.Tables objTable.Range.Editors.Add wdEditorEveryone Next ActiveDocument.SelectAllEditableRanges (wdEditorEveryone) ActiveDocument.DeleteAllEditableRanges (wdEditorEveryone) Application.ScreenUpdating = True End Sub It grants everyone permission to edit all tables (wdEditorEveryOne) which means it is not fullproof - if any other part of your has wdEditorEveryOne permission assigned it will be selected along with tables. So be careful when using this and backup your data. ▲ Collapse | | |