View Single Post
 
Old 02-03-2011, 11:28 PM
macropod's Avatar
macropod macropod is offline Windows 7 32bit Office 2000
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi verbster,

I missed the bit about using Quick Parts for adding the new page. To see how to do this, go to:
http://office.microsoft.com/en-us/wo...010214071.aspx
Note that you don't have to create a whole page's content this way, you could add just the required amount for the time being, adding more content as you go. Thus, you could start off your document with enough space for just one image & caption, and let the user add extra rows to the table as needed.

The code I gave you is an alternative approach - and only inserts one pair of rows at a time.

There is no code behind any of the content controls, however, whichever approach you use. When you use a Picture Content Control, the Content Control automatically opens the InsertPicture dialogue box.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote