How can I select all of the text in Word tables in a document?
Thread poster: John Di Rico
John Di Rico
John Di Rico  Identity Verified
France
Local time: 01:02
Member (2006)
French to English
Mar 28, 2008

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
Buck
Netherlands
Local time: 01:02
Dutch to English
Simple Mar 28, 2008

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
patyjs  Identity Verified
Mexico
Local time: 17:02
Spanish to English
+ ...
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
John Di Rico  Identity Verified
France
Local time: 01:02
Member (2006)
French to English
TOPIC STARTER
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


 
Charlie Bavington
Charlie Bavington  Identity Verified
Local time: 00:02
French to English
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
John Di Rico  Identity Verified
France
Local time: 01:02
Member (2006)
French to English
TOPIC STARTER
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
Hynek Palatin  Identity Verified
Czech Republic
Local time: 01:02
Member (2003)
English to Czech
+ ...
Macro Mar 28, 2008

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.


 
Luis Antonio de Larrauri
Luis Antonio de Larrauri  Identity Verified
Local time: 01:02
English to Spanish
+ ...
Macros Mar 29, 2008

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
Hynek Palatin  Identity Verified
Czech Republic
Local time: 01:02
Member (2003)
English to Czech
+ ...
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]


 
Luis Antonio de Larrauri
Luis Antonio de Larrauri  Identity Verified
Local time: 01:02
English to Spanish
+ ...
Thanks Mar 30, 2008

Thanks again, Hynek!

 
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


 


To report site rules violations or get help, contact a site moderator:


You can also contact site staff by submitting a support request »

How can I select all of the text in Word tables in a document?






Wordfast Pro
Translation Memory Software for Any Platform

Exclusive discount for ProZ.com users! Save over 13% when purchasing Wordfast Pro through ProZ.com. Wordfast is the world's #1 provider of platform-independent Translation Memory software. Consistently ranked the most user-friendly and highest value

Buy now! »
TM-Town
Manage your TMs and Terms ... and boost your translation business

Are you ready for something fresh in the industry? TM-Town is a unique new site for you -- the freelance translator -- to store, manage and share translation memories (TMs) and glossaries...and potentially meet new clients on the basis of your prior work.

More info »