clearing tables before updating with macro

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a macro that updates a summary table with user entered information in a detail table
This macro can be run a number of times
How do i clear the summary table before updating it via the macro

Many thanks
 
Here's one way:

Dim pCell as Word.Cell

Set pCell = Selection.Tables(1).Cell(1,1)
Do
pCell.range.text = ""
set pCell = pCell.Next
Loop until pCell is nothing
 

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

Back
Top