LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Printing selected pages in a Word document

There was a difference in what to print, too.

wdPrintRangeOfPages = 4
wdPrintFromTo = 3

But if you're using wdPrintFromTo, I would think I'd try:

word.PrintOut Range:=wdPrintFromTo, From:=1, To:=p

Notice that the quotes are gone.







Tristan wrote:

Thanks for your reply Dave,

That's pretty much the same avenue I went down and I tried the code
with the Pages:="1-" & p bit in it.

I couldn't get it to do what I wanted it to. On most of the occassions
(i tried a few variations on a theme) the document printed out but it
printed all the pages instead of the few I wanted, i.e. it wasn't
registering the p as a number.

--
Tristan
------------------------------------------------------------------------
Tristan's Profile: http://www.excelforum.com/member.php...o&userid=34061
View this thread: http://www.excelforum.com/showthread...hreadid=557029


--

Dave Peterson
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2003 printing problem--printing 1 document on 2 pages Bons Excel Discussion (Misc queries) 0 December 24th 09 04:15 PM
printing selected pages in one worksheet while working in another BROCK8292 Excel Discussion (Misc queries) 0 March 9th 07 01:38 AM
Multiple pages after printing selected area Lynn Excel Discussion (Misc queries) 1 April 17th 06 04:28 PM
How can I mirror pages in an excel document for printing? mirroring Excel Discussion (Misc queries) 4 March 29th 05 11:55 PM
Printing selected pages Another Richard Excel Programming 0 December 7th 03 07:23 PM


All times are GMT +1. The time now is 05:32 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"