To simplify editing, I would like to have a macro to search for all tables in a Word document and replace each table with three words of text e.g.,'insert table here.' This is easy to do with graphics without a macro. I found a macro at Microsoft-
http://support.microsoft.com/kb/212692 - that is supposed to find all tables in a document. It does that but once each is found it doesn't allow you to do anything like insert text. (I get an 'hourglass' when I try to delete the table and insert text ...In fact, for me the macro's 'no' (exit) button doesn't work either.)
I'd appreciate it if I could get a modification of this macro or some other work around that enables me to search for all tables in a Word document and replace each table with three words of text e.g.,'insert table here.' Thanks. Macro text is below and attached.
Sub FindTables()
Dim iResponse As Integer
Dim tTable As Table
'If any tables exist, loop through each table in collection.
For Each tTable In ActiveDocument.Tables
tTable.Select
iResponse = MsgBox("Table found. Find next?", 68)
If response = vbNo Then Exit For 'User chose to leave search.
Next
MsgBox prompt:="Search Complete.", buttons:=vbInformation
End Sub
Open in new window