Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / June 2005

Tip: Looking for answers? Try searching our database.

Finding Frames In The Footer

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
George Lee - 29 Jun 2005 21:20 GMT
I am trying to identify all items in a footer, especially objects like
frames. If the footer is selected, the frames are easily seen:

    Selection.Frames.Count

Count may be greater than zero (if any are present). However, in trying to
find the items when they aren't selected, the count is always zero:

   
ActiveDocument.Sections(x).Footer(wdHeaderFooterEvenPages).Range.Frames.Count

How can these things be found?
Helmut Weber - 30 Jun 2005 01:57 GMT
Hi George,

I think, something else must be wrong.

>ActiveDocument.Sections(x).Footer(wdHeaderFooterEvenPages).Range.Frames.Count

With ActiveDocument.Sections(1)
  MsgBox .Headers(wdHeaderFooterPrimary).Range.Frames.Count
End With

... is working well here and now.

Greetings from Bavaria, Germany

Helmut Weber, MVP, WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.