![]() |
#1
|
|||
|
|||
![]()
Hello is there a way for a script to print a specific (ideally the current) section in Word. I am hoping to have a button or link in each section that would allow a user to print just that section instead of the whole documet. Googling this topic has not returned anything concrete so I am wondering if someone can help here. Unfortunatly this has to be in Word 2000. Failing that I am thinking I can print the page ranges, however this is not ideal because of the upkeep when the document is updated. Any help or pointers would be greatfully recieved. Thanks,
Derek |
#2
|
||||
|
||||
![]()
Hi Derek,
You could do that with a macro like: Code:
Sub PrintMe() Dim Rng As Range Set Rng = Selection.Range Rng.Sections(1).Range.Select Application.PrintOut Range:=wdPrintSelection Rng.Select End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
![]()
Hi macropod, thank you very much for your reply, that is exactly what I was after... its curious that the print option in word has "selection", "all", "current page" and "range" as options but there is no "current section"! I have also added a MsgBox to confirm if the user wishes to print the current section in order to prevent accidental prints!
Thanks again, Derek ![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
phaworth | Word | 1 | 04-30-2011 11:23 PM |
Different Colors for Each Section? | l1willia | Word | 0 | 12-30-2010 11:49 AM |
Different header for each section? How do I? | winwintoo | Word | 0 | 04-18-2010 07:59 AM |
Section Breaks, maybe? | R20 | Word | 2 | 12-20-2009 06:35 PM |
Section Breaks | glenws | Word | 1 | 11-05-2009 02:10 PM |