View Single Post
  #5   Report Post  
Posted to microsoft.public.word.tables
Hal Hal is offline
external usenet poster
 
Posts: 27
Default Converting Multiple Tables to Text

Doug -

I created the macro in Visual Basic. When I ran it I received the error:

"Run-time error '424':
object required"

I clicked debug and it highlighted the line in the macro beginning "For i ="

I typed just as you said, so I am not sure what is wrong. Any thoughts?

Thanks for your assistance.
Hal

"Doug Robbins - Word MVP" wrote:

Use the following code in a macro

Dim i As Long
With ActiveDocument
For i = .Tables.Count To 1 Step -1
.Tables(i).ConvertToText
Next i
End With

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Hal" wrote in message
...
If one has a document that is composed of multiple tables is there an easy
way to select the whole document and convert all tables to text at once or
do
you have to convert each table individuallY? Thanks.