Live Chat Software by Kayako |
Knowledgebase: Microsoft Word
A Table-To-Text Word Macro
Posted by - NA - on 30 March 2006 07:04 AM
|
|
Solution: Since we often encounter tables in Word documents that we usually have to convert to text, you can write a macro to speed up the job. This is a very short macro, so even if you don't use it often, it may prove worthwhile to you. To create the macro, run Word and press Alt + F11. When the VBS Editor opens, click the 'Modules' folder by choosing Insert|Module. Now add the following to your new module. Sub Table() Selection.Tables(1).Select Selection.Rows.ConvertToText Separator:=wdSeparateByTabs, NestedTables:= True Selection.Style = ActiveDocument.Styles("Normal") Selection.MoveDown Unit:=wdLine, Count:=1 End Sub Press Alt + Q to return to the Word document. To use the macro, click in the table you want to convert. Next, press Alt + F8 and double-click the macro name. | |
|
Comments (0)