Word table adding rows, how to detect page break?

N

nickname

I am adding rows to a table in word using the following:

WordDocument.Tables(2).Rows.Add

is there any way to detect when this takes you onto a new page?

Thanks
 
P

Peter Huang [MSFT]

Hi

There is no such event fired when a new page started, but I think you may
try to test for the value below after you call Add to see if the
pages.count is increased.
Debug.Print ThisDocument.ActiveWindow.Panes(1).Pages.Count


Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 

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