View Single Post
 
Old 09-04-2012, 08:04 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,342
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

Quote:
Originally Posted by ubns View Post
How can we reference a heading without a bookmark?
By doing in code the same as you'd do manually via Insert|Cross-Reference>Heading.

If you can identify the heading to bookmark it, so that you can cross-reference the bookmark, you can just as easily identify it for cross-referencing without the bookmark.
Quote:
With regards to the the code I am talking about (for the page break) see the code below (which was provided by you). I was wondering if we can delete the existing footer of newly inserted document and link it to the previous footer?
After:
.Range.InsertFile ...
Insert:
Code:
    For Each HdFt In Scn.Footers
      .Range.Text = vbNullString
      HdFt.LinkToPrevious = True
    Next
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote