
Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
Marc Jurriens,
Is this for some training exercise in a classroom? If not, Word already has
a way to organize your document. Read the help on the Outline View. Within
Outline view you can expand and collapse the viewing of sections, demote and
promote their hierarchy, and move them around quite easily.
> Marc Jurriens was telling us:
> Marc Jurriens nous racontait que :
[quoted text clipped - 41 lines]
> according to the original numbered order?
> Have you started to code the userform?

Signature
Russ
drsmN0SPAMikleAThotmailD0Tcom.INVALID
Marc Jurriens - 06 Sep 2006 09:30 GMT
Hi Russ,
If there would be some way to automate what you can do with outline then
that may be usefull... Thing is that I want to make this as simplistic as
possible, without the possibility to move stuff around to places I do not
want it to move :-)
Thanks,
Marc
> Marc Jurriens,
> Is this for some training exercise in a classroom? If not, Word already
[quoted text clipped - 49 lines]
>> according to the original numbered order?
>> Have you started to code the userform?
Hi !
I have answered inline:
> Marc Jurriens was telling us:
> Marc Jurriens nous racontait que :
[quoted text clipped - 22 lines]
> At some point, the user will decide to move some numbered
> paragraphs from one place to another,
Jup.. please note that the text itself is standard... there will be no changes in the text itself, basically online the blocks of text will move from chapter 4 top appendix B, this should also be possible to reverse.. I an looking for something that makes it possible to very easily move them hence and forth..
> The paragraphs concerned by the move are only those under
> the second level in chapter 4 (4.1 to 4.x),
This is correct.. Yesterday I also though of the following: If the paragraph numbering is an issue to "fix" then I could probably also work with blocks of text without a paragraph number... That way it would not show that there are parts "missing"...
> The amount of those numbered paragraphs can be variable,
Nope.. lets say there are 10... I might make it 12 in the future but that is not something the user will do (he will not enter text, only move existing texit around using the userform)..
> Those that will be moved will always be moved to Appendix B,
Or reverse... Everything will travel between chapter 4 and appendix B
> This should be done through a userform.
The userform looks like the best way to "communicate" to the user of the template...
> Questions:
> Should this process be reversible? (Would it be useful?)
Yes... this is usefull and necessary..
> Do you need the full paragraph text on the userform?
Nope.. do not even want it.. Typically I would want to have the name of the paragraph in there...
> (If not, how much text should there be?)
> (Or is this irrelevant because each of the paragraphs
> will consists of only a few words)
The paragraphs can be as long as half a page...
> Can only the paragraph numbers by used on the userform?
That would be hard to understand for the users, a few words would be better..
> Where in appendix B should they be moved?
There is no order relevant to the paragraphs...
> Can this process be repeated many times by the user?
Jup... An infinite number of times..
> If so, do you have to remember the original numbers so that
> paragraphs that are subsequently added are added
> according to the original numbered order?
Nope... the number is of no relevance.. And, as stated above, numbering could be dropped totally it that simplifies matters...
> Have you started to code the userform?
Not yet.. Closest I can come to is a form showing text and a checkmark behind it.. after that I am lost..
Nice project eh ? Thanks a lot for your help !
Jean-Guy Marcil - 06 Sep 2006 11:48 GMT
Marc Jurriens was telling us:
Marc Jurriens nous racontait que :
> Hi !
>
[quoted text clipped - 99 lines]
>
> Nice project eh ? Thanks a lot for your help !
So, the user will not edit this document? (just move text around?)
Could this be a protected document then? (Unless the user can edit other parts of the document.)
You have not answered my question regarding placement of pargraphs from Chapter four in Appendix B. Is Appendix B empty to start with? (Thus it is effectively created when the first text is moved. If no text is moved, does Appendix B need to exist at all?)
Where would the paragraph name come from? From the text itself (the first n characters?) or some arbitrary name that would only appear on the userform?
Finally, if text is moved back to Chapter four, does it have to regain its old number? Or those paragraphs can be in any order in chapter four?

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
Marc Jurriens - 06 Sep 2006 13:45 GMT
Marc Jurriens was telling us:
Marc Jurriens nous racontait que :
> Hi !
>
> I have answered inline:
>
> "Jean-Guy Marcil" <NoSpam@LeaveMeAlone> wrote in message
> news:%23tnMMvS0GHA.2516@TK2MSFTNGP06.phx.gbl...
>> Marc Jurriens was telling us:
>> Marc Jurriens nous racontait que :
>>
>>> Hi Jean-Guy,
>>>
>>> There blocks of text that will be either a paragraph in chapter 4
>>> OR a paragraph in appendix B. The location of the paragraph (eg: if
>>> a block of text would be 4.1 or 4.4) is not important.
>>>
>>> Looked at it another way:
>>>
>>> Lets say I have 15 blocks of text, paragraphs 4.1 until 4.15. From
>>> the userform I want to able to say that number 3 and 6 (4.3 and 4.6)
>>> should not be in chapter 4 but in appendix a. In other words: 4.3
>>> and
>>> 4.6 should be hidden in chapter 4 and would need to "appear" in
>>> appendix B...
>>> Problem with "hiding" and "showing" would be that the paragraph
>>> numbering would not be consistent anymore, 4.3 and 4.6 would be
>>> missing..
>>
>> So, if I understand correctly:
>>
>> A user will be working on a document,
>> This document is divided in chapters and has some appendices,
>> At some point, the user will decide to move some numbered
>> paragraphs from one place to another,
>
> Jup.. please note that the text itself is standard... there will be
> no changes in the text itself, basically online the blocks of text
> will move from chapter 4 top appendix B, this should also be possible
> to reverse.. I an looking for something that makes it possible to
> very easily move them hence and forth..
>
>> The paragraphs concerned by the move are only those under
>> the second level in chapter 4 (4.1 to 4.x),
>
> This is correct.. Yesterday I also though of the following: If the
> paragraph numbering is an issue to "fix" then I could probably also
> work with blocks of text without a paragraph number... That way it
> would not show that there are parts "missing"...
>
>> The amount of those numbered paragraphs can be variable,
>
> Nope.. lets say there are 10... I might make it 12 in the future but
> that is not something the user will do (he will not enter text, only
> move existing texit around using the userform)..
>
>> Those that will be moved will always be moved to Appendix B,
>
> Or reverse... Everything will travel between chapter 4 and appendix B
>
>> This should be done through a userform.
>
> The userform looks like the best way to "communicate" to the user of
> the template...
>
>
>>
>> Questions:
>> Should this process be reversible? (Would it be useful?)
>
> Yes... this is usefull and necessary..
>
>> Do you need the full paragraph text on the userform?
>
> Nope.. do not even want it.. Typically I would want to have the name
> of the paragraph in there...
>
>> (If not, how much text should there be?)
>> (Or is this irrelevant because each of the paragraphs
>> will consists of only a few words)
>
> The paragraphs can be as long as half a page...
>
>> Can only the paragraph numbers by used on the userform?
>
> That would be hard to understand for the users, a few words would be
> better..
>
>> Where in appendix B should they be moved?
>
> There is no order relevant to the paragraphs...
>
>> Can this process be repeated many times by the user?
>
> Jup... An infinite number of times..
>
>> If so, do you have to remember the original numbers so that
>> paragraphs that are subsequently added are added
>> according to the original numbered order?
>
> Nope... the number is of no relevance.. And, as stated above,
> numbering could be dropped totally it that simplifies matters...
>
>> Have you started to code the userform?
>
> Not yet.. Closest I can come to is a form showing text and a
> checkmark behind it.. after that I am lost..
>
> Nice project eh ? Thanks a lot for your help !
So, the user will not edit this document? (just move text around?)
Correct !
Could this be a protected document then? (Unless the user can edit other parts of the document.)
Yes this would be no problem.
You have not answered my question regarding placement of pargraphs from Chapter four in Appendix B. Is Appendix B empty to start with? (Thus it is effectively created when the first text is moved. If no text is moved, does Appendix B need to exist at all?)
Yes, appendix B can be empty to start with and be created (or filled) the moment one of the checkmarks in the userform is not ticked.
Where would the paragraph name come from? From the text itself (the first n characters?) or some arbitrary name that would only appear on the userform?
Have not given this thought... But what about the first text untill <carriage return> of the text ? That would always be the paragraph title...
Finally, if text is moved back to Chapter four, does it have to regain its old number? Or those paragraphs can be in any order in chapter four?
The order is of no importance... And neither so is the numbering...
--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
Jean-Guy Marcil - 06 Sep 2006 20:06 GMT
Marc Jurriens was telling us:
Marc Jurriens nous racontait que :
> So, the user will not edit this document? (just move text around?)
>
[quoted text clipped - 4 lines]
>
> Yes this would be no problem.
What would be a problem?
Would it be a problem to have the document protected against editing or
would it be a problem to have the user edit the document?
And do not answer "Yes." :-)
> You have not answered my question regarding placement of pargraphs
> from Chapter four in Appendix B. Is Appendix B empty to start with?
[quoted text clipped - 3 lines]
> Yes, appendix B can be empty to start with and be created (or filled)
> the moment one of the checkmarks in the userform is not ticked.
Is there an Appendix C?
> Where would the paragraph name come from? From the text itself (the
> first n characters?) or some arbitrary name that would only appear on
[quoted text clipped - 3 lines]
> <carriage return> of the text ? That would always be the paragraph
> title...
Then this would be the whole paragraph, no?
I think you should give me a text sample of a few paragraphs (Two items that
a user could decide to move to the Appendix).
> Finally, if text is moved back to Chapter four, does it have to
> regain its old number? Or those paragraphs can be in any order in
> chapter four?
> The order is of no importance... And neither so is the numbering...

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
Marc Jurriens - 07 Sep 2006 08:29 GMT
> Marc Jurriens was telling us:
> Marc Jurriens nous racontait que :
[quoted text clipped - 22 lines]
>
> Is there an Appendix C?
Yes there is, but I can make this appendix the last one if that is
important, not an issue...
>> Where would the paragraph name come from? From the text itself (the
>> first n characters?) or some arbitrary name that would only appear on
[quoted text clipped - 7 lines]
> I think you should give me a text sample of a few paragraphs (Two items
> that a user could decide to move to the Appendix).
Hiya, Nope that would then only be the title, examples:
Marks first example
This would be some text and a bit more and a bit more and a bit more and a
bit more and a bit more and a bit more and a bit more and a bit more and a
bit more and a bit more and a bit more and a bit more and a bit more and a
bit more and a bit more and a bit more and a bit more and a bit more and a
bit more and a bit more and a bit more and a bit more and a bit more and a
bit more and a bit more and a bit more and.
Marks second example
Some other text and some extra and some extra and some extra and some extra
and some extra and some extra and some extra and some extra and some extra
and some extra and some extra and some extra and some extra and some extra
and some extra and some extra and some extra and some extra and some extra
and.
The first paragraph would be called "Marks first example", and this would
have to be listed on the userform, if selected the text (including the first
line title) should be visible in chapter 4, if the checkbox is not selected
then the text should be visible in the appendix (including the first line
title). Same for the second example.
>> Finally, if text is moved back to Chapter four, does it have to
>> regain its old number? Or those paragraphs can be in any order in
>> chapter four?
>> The order is of no importance... And neither so is the numbering...
Jean-Guy Marcil - 07 Sep 2006 12:05 GMT
Marc Jurriens was telling us:
Marc Jurriens nous racontait que :
>> Marc Jurriens was telling us:
>> Marc Jurriens nous racontait que :
[quoted text clipped - 8 lines]
>> or would it be a problem to have the user edit the document?
>> And do not answer "Yes." :-)
And the answer is...?

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
Marc Jurriens - 07 Sep 2006 12:13 GMT
> Marc Jurriens was telling us:
> Marc Jurriens nous racontait que :
[quoted text clipped - 13 lines]
>
> And the answer is...?
It would be no problem to have a protected document... User will only use
the userform to "change" the document and will not make his or her own
changes...
Jean-Guy Marcil - 07 Sep 2006 14:12 GMT
Marc Jurriens was telling us:
Marc Jurriens nous racontait que :
>> Marc Jurriens was telling us:
>> Marc Jurriens nous racontait que :
[quoted text clipped - 17 lines]
> use the userform to "change" the document and will not make his or
> her own changes...
Ok, so I will assume that the document is protected for forms.
This way, bookmarks can be used and the user will not make the code go belly
up because of deleted bookmarks.
I think I now have everything I need to come up with something you might be
able to use.
Now, you mentioned that you were going on holiday... when are you leaving?
I may not have time to come up with something today. If, when you get back
from holiday, you see I have not replied, start a new thread to catch my
attention...

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
Marc Jurriens - 10 Oct 2006 12:29 GMT
He's baaaaaaaaaaaaack !!!!
Did you found a way to do this Jean-Guy ?
> Marc Jurriens was telling us:
> Marc Jurriens nous racontait que :
[quoted text clipped - 32 lines]
> from holiday, you see I have not replied, start a new thread to catch my
> attention...
Jean-Guy Marcil - 11 Oct 2006 16:39 GMT
Marc Jurriens was telling us:
Marc Jurriens nous racontait que :
> He's baaaaaaaaaaaaack !!!!
>
> Did you found a way to do this Jean-Guy ?
It turned out it was a wee more complex than I thought...or else I missed
something obvious.
This is why I have to send you the document itself...
I will try the address I got from the message header (a Hotmail address), if
this is not the right one, let me know where I can send it to you.
I tried to come up with something robust, hence the use of collections and a
small class.
I did not protect the document yet because if you test the code while
protecting/unprotecting you cannot undo whatever was done in between the
protection status... You could reactivate those two lines of code when you
are done and then protect the document.
Also, you will need to find a way to let the user activate the code. Will
the code be in the document or in a template, an add-in, etc...
This whole thing is built on the principle that there are bookmarks that
define each piece of text. Those bookmarks should not be modified by the
user or all bets are off and you will have to use a more complicated system
of "Find" to recreate the bookmarks before the actual code is run.
I left you with the job of writing the code to move the paragraphs back to
the chapter area and of creating the Appendix whenever necessary...
Have fun!

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