Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.newusers
Cam Evenson Cam Evenson is offline
external usenet poster
 
Posts: 2
Default Template troubles

I have a user template file that is used to make instructution sheets for
the completion of work tasks. The template has a button on it that ads the
user in printing out other attachments that are always printed when
instruction sheets are printed. For the most part this template has worked
great and has not resulted in any complications until now. Some of the
instructions that have been written have overflowen to 2 or more pages and
the current button prints the current page with the attached sheets but
neglects the remaining pages. So now the user has to go to Page 2 and so on
and press the button again on those pages to print the pages out which
results in the attached pages being printed once again.

Is there a way to code this button first of all so it only appears on page
one of the document, and that it can understand that if there is more then
one page within this document that those pages will be printed also along
with only one copy of the attached files?

I have attached the code found under this button.

Private Sub CommandButton1_Click()
Application.PrintOut FileName:="", _
Range:=wdPrintCurrentPage, _
Item:=wdPrintDocumentContent, _
Copies:=1, _
Pages:="", _
PageType:=wdPrintAllPages, _
ManualDuplexPrint:=False, _
Collate:=True, _
Background:=True, _
PrintToFile:=False, _
PrintZoomColumn:=0, _
PrintZoomRow:=0, _
PrintZoomPaperWidth:=0, _
PrintZoomPaperHeight:=0

Application.PrintOut FileName:="", _
Range:=wdPrintRangeOfPages, _
Item:=wdPrintDocumentContent, _
Copies:=1, _
Pages:="2-3", _
PageType:=wdPrintAllPages, _
ManualDuplexPrint:=False, _
Collate:=True, _
Background:=True, _
PrintToFile:=False, _
PrintZoomColumn:=0, _
PrintZoomRow:=0, _
PrintZoomPaperWidth:=0, _
PrintZoomPaperHeight:=0
End Sub




  #2   Report Post  
Posted to microsoft.public.word.newusers
Stefan Blom Stefan Blom is offline
external usenet poster
 
Posts: 8,428
Default Template troubles

Please ask in a programming newsgroup, such as
microsoft.public.word.vba.general, where you are more likely to get a
knowledgeable reply.

--
Stefan Blom
Microsoft Word MVP


"Cam Evenson" wrote in message ...
I have a user template file that is used to make instructution sheets for
the completion of work tasks. The template has a button on it that ads the
user in printing out other attachments that are always printed when
instruction sheets are printed. For the most part this template has worked
great and has not resulted in any complications until now. Some of the
instructions that have been written have overflowen to 2 or more pages and
the current button prints the current page with the attached sheets but
neglects the remaining pages. So now the user has to go to Page 2 and so
on
and press the button again on those pages to print the pages out which
results in the attached pages being printed once again.

Is there a way to code this button first of all so it only appears on page
one of the document, and that it can understand that if there is more then
one page within this document that those pages will be printed also along
with only one copy of the attached files?

I have attached the code found under this button.

Private Sub CommandButton1_Click()
Application.PrintOut FileName:="", _
Range:=wdPrintCurrentPage, _
Item:=wdPrintDocumentContent, _
Copies:=1, _
Pages:="", _
PageType:=wdPrintAllPages, _
ManualDuplexPrint:=False, _
Collate:=True, _
Background:=True, _
PrintToFile:=False, _
PrintZoomColumn:=0, _
PrintZoomRow:=0, _
PrintZoomPaperWidth:=0, _
PrintZoomPaperHeight:=0

Application.PrintOut FileName:="", _
Range:=wdPrintRangeOfPages, _
Item:=wdPrintDocumentContent, _
Copies:=1, _
Pages:="2-3", _
PageType:=wdPrintAllPages, _
ManualDuplexPrint:=False, _
Collate:=True, _
Background:=True, _
PrintToFile:=False, _
PrintZoomColumn:=0, _
PrintZoomRow:=0, _
PrintZoomPaperWidth:=0, _
PrintZoomPaperHeight:=0
End Sub






Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Newsletter Template troubles relayer Microsoft Word Help 1 December 8th 07 02:19 PM
Autocorrect troubles Professor_J Microsoft Word Help 1 July 25th 07 09:46 PM
TOC and Index Troubles Hurger Microsoft Word Help 8 October 24th 06 04:28 AM
Template troubles tednov Page Layout 3 August 18th 06 11:16 PM
border troubles Georgea Microsoft Word Help 3 July 18th 05 03:41 PM


All times are GMT +1. The time now is 05:17 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"