Table cell clear contents

M

Mark

I am wanting some code which clears the content of a cell in a table, can
someone assist with the coding please?
 
D

Doug Robbins - Word MVP

ActiveDocument.Tables(1).Cell(1, 2).Range.Delete

will delete the contents of the second cell (column 2) of the first row of
the first table in the active document.


--
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
 
M

Mark

Many thanks I had:

ActiveDocument.Tables(2).Rows(13).Cells(3).select

With Selection.Cells.

.Delete

End With

but this deleted the whole cell and not the contents!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top