Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Automatically Generating Customised Footer in Templates
I need to be able to create a letter template but am not sure how to generate
a customised footer. If, when the template is used, the text goes over more than one page, I need the text 'Cont'd' to appear in the footer and to appear on every page except the last page. If the text fits onto one page only, then I don't want anything to appear in the footer. Is using VB programming the only way to achieve this? I am not a 'techie' so if this is the only way, does anyone have any code that I can use? -- Thanks, Lou |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Automatically Generating Customised Footer in Templates
See: http://sbarnhill.mvps.org/wordfaqs/Letterhead.htm
-- Carol A. Bratt, MCP "Louise" wrote: I need to be able to create a letter template but am not sure how to generate a customised footer. If, when the template is used, the text goes over more than one page, I need the text 'Cont'd' to appear in the footer and to appear on every page except the last page. If the text fits onto one page only, then I don't want anything to appear in the footer. Is using VB programming the only way to achieve this? I am not a 'techie' so if this is the only way, does anyone have any code that I can use? -- Thanks, Lou |
#3
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Automatically Generating Customised Footer in Templates
You can do this with a field. The syntax of the field needs to say, "If this
is not the last page [in Word terms, if the current page number is less than the total number of pages], and if the number of pages is more than 1, print 'Cont'd.'" You do it with this field: { IF { PAGE } { NUMPAGES } { IF { NUMPAGES } 1 "Cont'd"} } You must insert each pair of field delimiters using Ctrl+F9, although, as a shortcut, you can use the Insert Page Number and Insert Number of Pages button on the Header and Footer toolbar to insert the { PAGE } and { NUMPAGES } fields. -- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA Word MVP FAQ site: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. "Louise" (donotspam) wrote in message ... I need to be able to create a letter template but am not sure how to generate a customised footer. If, when the template is used, the text goes over more than one page, I need the text 'Cont'd' to appear in the footer and to appear on every page except the last page. If the text fits onto one page only, then I don't want anything to appear in the footer. Is using VB programming the only way to achieve this? I am not a 'techie' so if this is the only way, does anyone have any code that I can use? -- Thanks, Lou |
#4
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Automatically Generating Customised Footer in Templates
Suzanne, thanks for getting back to me. I think I'm being really stupid
though as I just can't seem to get anything to appear at all. I haven't had a great deal of experience with fields such as 'IF'... I have created a 3 page document and then went to ViewHeader and Footer. Then, in the footer, I pressed Ctrl +[F9], typed the word 'IF' and then clicked on the [page number] button then entered '' followed by [Number of pages] button then pressed Ctrl+[F9] again followed by IF then clicked on [Number of pages] button followed by 1 "Cont" However, when I do Alt+[F9] to show results, I get 'Error! Unknown op code for conditional' message repeating several times.... Am I doing something really stupid?? -- Thanks, Lou "Suzanne S. Barnhill" wrote: You can do this with a field. The syntax of the field needs to say, "If this is not the last page [in Word terms, if the current page number is less than the total number of pages], and if the number of pages is more than 1, print 'Cont'd.'" You do it with this field: { IF { PAGE } { NUMPAGES } { IF { NUMPAGES } 1 "Cont'd"} } You must insert each pair of field delimiters using Ctrl+F9, although, as a shortcut, you can use the Insert Page Number and Insert Number of Pages button on the Header and Footer toolbar to insert the { PAGE } and { NUMPAGES } fields. -- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA Word MVP FAQ site: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. "Louise" (donotspam) wrote in message ... I need to be able to create a letter template but am not sure how to generate a customised footer. If, when the template is used, the text goes over more than one page, I need the text 'Cont'd' to appear in the footer and to appear on every page except the last page. If the text fits onto one page only, then I don't want anything to appear in the footer. Is using VB programming the only way to achieve this? I am not a 'techie' so if this is the only way, does anyone have any code that I can use? -- Thanks, Lou |
#5
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Automatically Generating Customised Footer in Templates
I think it should be:
{ IF { PAGE } { NUMPAGES } { IF { PAGE } 1 "Cont'd"} } The way I copy complex field codes from a newsgroup message is to copy and paste. Then I select the innermost field words and press Ctrl-F9 to turn them into fields and delete the corresponding typed braces. In the case of this field, I would do this first with the Page and NumPages words, then with the second IF field and finally with the complete field. -- Charles Kenyon Word New User FAQ & Web Directory: http://addbalance.com/word Intermediate User's Guide to Microsoft Word (supplemented version of Microsoft's Legal Users' Guide) http://addbalance.com/usersguide See also the MVP FAQ: http://word.mvps.org/FAQs/ which is awesome! My criminal defense site: http://addbalance.com --------- --------- --------- --------- --------- --------- This message is posted to a newsgroup. Please post replies and questions to the newsgroup so that others can learn from my ignorance and your wisdom. "Suzanne S. Barnhill" wrote in message ... You can do this with a field. The syntax of the field needs to say, "If this is not the last page [in Word terms, if the current page number is less than the total number of pages], and if the number of pages is more than 1, 'Cont'd.'" You do it with this field: { IF { PAGE } { NUMPAGES } { IF { NUMPAGES } 1 "Cont'd"} } You must insert each pair of field delimiters using Ctrl+F9, although, as a shortcut, you can use the Insert Page Number and Insert Number of Pages button on the Header and Footer toolbar to insert the { PAGE } and { NUMPAGES } fields. -- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA Word MVP FAQ site: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. "Louise" (donotspam) wrote in message ... I need to be able to create a letter template but am not sure how to generate a customised footer. If, when the template is used, the text goes over more than one page, I need the text 'Cont'd' to appear in the footer and to appear on every page except the last page. If the text fits onto one page only, then I don't want anything to appear in the footer. Is using VB programming the only way to achieve this? I am not a 'techie' so if this is the only way, does anyone have any code that I can use? -- Thanks, Lou |
#6
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Automatically Generating Customised Footer in Templates
I've added my modified version to my AutoText as "Continued" in the footer
style. -- Charles Kenyon Word New User FAQ & Web Directory: http://addbalance.com/word Intermediate User's Guide to Microsoft Word (supplemented version of Microsoft's Legal Users' Guide) http://addbalance.com/usersguide See also the MVP FAQ: http://word.mvps.org/FAQs/ which is awesome! My criminal defense site: http://addbalance.com --------- --------- --------- --------- --------- --------- This message is posted to a newsgroup. Please post replies and questions to the newsgroup so that others can learn from my ignorance and your wisdom. "Suzanne S. Barnhill" wrote in message ... You can do this with a field. The syntax of the field needs to say, "If this is not the last page [in Word terms, if the current page number is less than the total number of pages], and if the number of pages is more than 1, 'Cont'd.'" You do it with this field: { IF { PAGE } { NUMPAGES } { IF { NUMPAGES } 1 "Cont'd"} } You must insert each pair of field delimiters using Ctrl+F9, although, as a shortcut, you can use the Insert Page Number and Insert Number of Pages button on the Header and Footer toolbar to insert the { PAGE } and { NUMPAGES } fields. -- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA Word MVP FAQ site: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. "Louise" (donotspam) wrote in message ... I need to be able to create a letter template but am not sure how to generate a customised footer. If, when the template is used, the text goes over more than one page, I need the text 'Cont'd' to appear in the footer and to appear on every page except the last page. If the text fits onto one page only, then I don't want anything to appear in the footer. Is using VB programming the only way to achieve this? I am not a 'techie' so if this is the only way, does anyone have any code that I can use? -- Thanks, Lou |
#7
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Automatically Generating Customised Footer in Templates
Just wanted to say a huge thank you to Suzanne and Charles... it's now
working perfectly. Many, many thanks for taking the time to sort me out! -- Thanks, Lou "Charles Kenyon" wrote: I think it should be: { IF { PAGE } { NUMPAGES } { IF { PAGE } 1 "Cont'd"} } The way I copy complex field codes from a newsgroup message is to copy and paste. Then I select the innermost field words and press Ctrl-F9 to turn them into fields and delete the corresponding typed braces. In the case of this field, I would do this first with the Page and NumPages words, then with the second IF field and finally with the complete field. -- Charles Kenyon Word New User FAQ & Web Directory: http://addbalance.com/word Intermediate User's Guide to Microsoft Word (supplemented version of Microsoft's Legal Users' Guide) http://addbalance.com/usersguide See also the MVP FAQ: http://word.mvps.org/FAQs/ which is awesome! My criminal defense site: http://addbalance.com --------- --------- --------- --------- --------- --------- This message is posted to a newsgroup. Please post replies and questions to the newsgroup so that others can learn from my ignorance and your wisdom. "Suzanne S. Barnhill" wrote in message ... You can do this with a field. The syntax of the field needs to say, "If this is not the last page [in Word terms, if the current page number is less than the total number of pages], and if the number of pages is more than 1, 'Cont'd.'" You do it with this field: { IF { PAGE } { NUMPAGES } { IF { NUMPAGES } 1 "Cont'd"} } You must insert each pair of field delimiters using Ctrl+F9, although, as a shortcut, you can use the Insert Page Number and Insert Number of Pages button on the Header and Footer toolbar to insert the { PAGE } and { NUMPAGES } fields. -- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA Word MVP FAQ site: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. "Louise" (donotspam) wrote in message ... I need to be able to create a letter template but am not sure how to generate a customised footer. If, when the template is used, the text goes over more than one page, I need the text 'Cont'd' to appear in the footer and to appear on every page except the last page. If the text fits onto one page only, then I don't want anything to appear in the footer. Is using VB programming the only way to achieve this? I am not a 'techie' so if this is the only way, does anyone have any code that I can use? -- Thanks, Lou |
#8
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Automatically Generating Customised Footer in Templates
Have test this out and Suzanne, your answer was giving me exactly what I
needed... I was just missing some spaces! -- Thanks, Lou "Louise" wrote: Suzanne, thanks for getting back to me. I think I'm being really stupid though as I just can't seem to get anything to appear at all. I haven't had a great deal of experience with fields such as 'IF'... I have created a 3 page document and then went to ViewHeader and Footer. Then, in the footer, I pressed Ctrl +[F9], typed the word 'IF' and then clicked on the [page number] button then entered '' followed by [Number of pages] button then pressed Ctrl+[F9] again followed by IF then clicked on [Number of pages] button followed by 1 "Cont" However, when I do Alt+[F9] to show results, I get 'Error! Unknown op code for conditional' message repeating several times.... Am I doing something really stupid?? -- Thanks, Lou "Suzanne S. Barnhill" wrote: You can do this with a field. The syntax of the field needs to say, "If this is not the last page [in Word terms, if the current page number is less than the total number of pages], and if the number of pages is more than 1, print 'Cont'd.'" You do it with this field: { IF { PAGE } { NUMPAGES } { IF { NUMPAGES } 1 "Cont'd"} } You must insert each pair of field delimiters using Ctrl+F9, although, as a shortcut, you can use the Insert Page Number and Insert Number of Pages button on the Header and Footer toolbar to insert the { PAGE } and { NUMPAGES } fields. -- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA Word MVP FAQ site: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. "Louise" (donotspam) wrote in message ... I need to be able to create a letter template but am not sure how to generate a customised footer. If, when the template is used, the text goes over more than one page, I need the text 'Cont'd' to appear in the footer and to appear on every page except the last page. If the text fits onto one page only, then I don't want anything to appear in the footer. Is using VB programming the only way to achieve this? I am not a 'techie' so if this is the only way, does anyone have any code that I can use? -- Thanks, Lou |
#9
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Automatically Generating Customised Footer in Templates
Ordinarily Word is not too picky about spaces one way or the other, but
occasionally it will require them. OTOH, in EQ fields, you have to remove the terminal space in the field; otherwise, you end up with an unwanted space in the field result. sigh -- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA Word MVP FAQ site: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. "Louise" (donotspam) wrote in message ... Have test this out and Suzanne, your answer was giving me exactly what I needed... I was just missing some spaces! -- Thanks, Lou "Louise" wrote: Suzanne, thanks for getting back to me. I think I'm being really stupid though as I just can't seem to get anything to appear at all. I haven't had a great deal of experience with fields such as 'IF'... I have created a 3 page document and then went to ViewHeader and Footer. Then, in the footer, I pressed Ctrl +[F9], typed the word 'IF' and then clicked on the [page number] button then entered '' followed by [Number of pages] button then pressed Ctrl+[F9] again followed by IF then clicked on [Number of pages] button followed by 1 "Cont" However, when I do Alt+[F9] to show results, I get 'Error! Unknown op code for conditional' message repeating several times.... Am I doing something really stupid?? -- Thanks, Lou "Suzanne S. Barnhill" wrote: You can do this with a field. The syntax of the field needs to say, "If this is not the last page [in Word terms, if the current page number is less than the total number of pages], and if the number of pages is more than 1, 'Cont'd.'" You do it with this field: { IF { PAGE } { NUMPAGES } { IF { NUMPAGES } 1 "Cont'd"} } You must insert each pair of field delimiters using Ctrl+F9, although, as a shortcut, you can use the Insert Page Number and Insert Number of Pages button on the Header and Footer toolbar to insert the { PAGE } and { NUMPAGES } fields. -- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA Word MVP FAQ site: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. "Louise" (donotspam) wrote in message ... I need to be able to create a letter template but am not sure how to generate a customised footer. If, when the template is used, the text goes over more than one page, I need the text 'Cont'd' to appear in the footer and to appear on every page except the last page. If the text fits onto one page only, then I don't want anything to appear in the footer. Is using VB programming the only way to achieve this? I am not a 'techie' so if this is the only way, does anyone have any code that I can use? -- Thanks, Lou |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Workgroup templates | Microsoft Word Help | |||
formatting headers/footers | Microsoft Word Help | |||
Automatically Updating Custom Templates on Many Computers | Microsoft Word Help | |||
Same header but even/odd footer (sorry for the new thread) | Page Layout | |||
Templates in too many languages. Only need English. | Microsoft Word Help |