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 / October 2006

Tip: Looking for answers? Try searching our database.

Automating Document Creation

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Trying06 - 17 Oct 2006 20:39 GMT
Help!!!

I'm attempting to build a capability where I can create a huge list of
statements in a source document and go through and select applicable
statements to include in a final document.  I see the source document being a
complete list of statements that are categorized by some common theme.  I
just go through and select the statements I want included in the final
document and voila, it's done.  

I'll also need to edit the statements after they are chosen to be included
in the final document.  Any great ideas out there on how to best accomplish
this with the greatest degree of flexibility?
Jean-Guy Marcil - 18 Oct 2006 04:52 GMT
Trying06 was telling us:
Trying06 nous racontait que :

> Help!!!
>
[quoted text clipped - 8 lines]
> included in the final document.  Any great ideas out there on how to
> best accomplish this with the greatest degree of flexibility?

I would use a template with AutoText entries.

I would name the AutoText Entries in such a way as to easily categorize them
*and* to be able to use the name to generate content for a  multiple select
ListBox on a userform. Something like:

Theme1_Topic1
Theme1_Topic2
Theme1_Topic3
Theme2_Topic1
etc.

Then use something like:
Me.myListBox.AddItem Replace("Theme1_Topic1", "_", " ")
etc.

Or course, if there are lots of them, you might want to create an array
instead.

Present the user with  two ListBoxes on a userform , one on the right that
lists all the possible text blocks, they select and click on a button to add
them in the list on the right. You might wan to provide a functionality so
that the user can place them in order if that is important. When the list on
the right is complete, they would click on a  OK button that would insert
each AutoText one after the other based on the content of the ListBox on the
right.

You could also use radio buttons and tabbed pages on the userform instead of
ListBoxes, it might be easier that way.

The ultimate design you will use depends on the number of blocks and how
they are organized.

Signature

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org


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.