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 / March 2005

Tip: Looking for answers? Try searching our database.

Page level field??

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ML - 17 Mar 2005 17:57 GMT
Is there a way to have a page level hidden field that can be tied to a
userform so that the user can set the field on a page by page basis.  I need
this to be able to define a page level classification code that will be used
within the header to display a classification marker.

I want to have a menu item that opens the userform and displays and lets the
user set the page level field.

Any suggestions/ideas?
Cindy M  -WordMVP- - 26 Mar 2005 11:05 GMT
Hi Ml,

> Is there a way to have a page level hidden field that can be tied to a
> userform so that the user can set the field on a page by page basis.  I need
[quoted text clipped - 3 lines]
> I want to have a menu item that opens the userform and displays and lets the
> user set the page level field.

This would be rather tricky, as you can't lock anything to a specific page in
Word. Word is designed for text flow, and the text is editted, it will move to
a different page. And everything in a document is linked to some portion of
text (graphics objects are anchored to paragraphs/characters).

If you had a document, and added, say, some hidden information in a Frame, in a
margin, you'd have to have some way of tracking whether these frames have moved
to a different page. And then you'd have to know whether the page level info it
contains is still pertinent to the page on which it was originally, or if that
text has moved to the page where the frame now finds itself.

Now, if you wanted to classify the document by paragraph, this is something you
could do.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)
ML - 27 Mar 2005 16:08 GMT
We do classify by paragraph by using a marking at the beginning.  The issue
however is when a paragraph spans pages and therefore the marker is only
seen on the first page, not the others.

> Hi Ml,
>
[quoted text clipped - 39 lines]
> reply
> in the newsgroup and not by e-mail :-)
Cindy M  -WordMVP- - 28 Mar 2005 16:45 GMT
Hi Ml,

> We do classify by paragraph by using a marking at the beginning.  The issue
> however is when a paragraph spans pages and therefore the marker is only
> seen on the first page, not the others.

IOW, what you're really after is a way to pick up
   - whether the para spans more than one page
   - what the level is on that preceding page?

In any case, there's no way to put something page-specific in the document
header. Headers are section, not page-specific. You could certainly position a
frame on the page so that it looks like it's in the header.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)
ML - 29 Mar 2005 00:32 GMT
> IOW, what you're really after is a way to pick up
>    - whether the para spans more than one page
>    - what the level is on that preceding page?

Yes that is it exactly.

The frame is not simple enough for our users, this needs to be extremely
easy to use.

> Hi Ml,
>
[quoted text clipped - 19 lines]
> This reply is posted in the Newsgroup; please post any follow question or
> reply in the newsgroup and not by e-mail :-)
Cindy M  -WordMVP- - 29 Mar 2005 21:50 GMT
Hi Ml,

> > IOW, what you're really after is a way to pick up
> >    - whether the para spans more than one page
> >    - what the level is on that preceding page?
>  
> Yes that is it exactly.

Well, my inclination would be to cycle through all the
paragraphs in the document (or in a range) and compare the
page number (Range.Information). If the page numbers of two
consecutive paragraphs differ, I'd back up a character (to
move to the preceding para) and check that page number. If
it's on the same page as the "next" paragraph, then it
extends across two pages.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update
Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:-)

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.