Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Giving FOCUS to Print Preview

To any Programmer,

Help,

I used to be able to call Print Preview in code, and immediately upon
display of the preview window I could use the scroll-wheel on the mouse
to start advancing thru the 'preview' ...

Somewhere along the line (not sure if it was the change to Office2000,
I have to now select ANY button (once) on the Preview tab to 'allow'
the scroll-wheel to function as it used to - (Not sure why 'focus' is
not given to the Preview window).

Once I select, for example "NEXT", then the scroll-wheel works.

Any ideas on how to give focus to PREVIEW? ... I'm currently using code
similar to the following:

Function PageToPrintOrView(iStart As Integer, iFinish As Integer, _
iPrintOrView As Integer)
'------------------------------------------
' Routine receives:
' iStart Value: Start Page #
' iFinish Value: Finish Page #
' iPrintOrView Value: 0 = Print / 1 = PrintPreview
'------------------------------------------
ActiveSheet.Select
With ActiveSheet
.PrintOut From:=iStart, To:=iFinish, Preview:=iPrintOrView, _
Copies:=1, Collate:=True
End With
End Function


ANY HELP WOULD BE GREATLY APPRECIATED ...

JimP

Reply
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
Print and Print Preview Graphic Moving Resizing 2007/2003 Adam Rayburn Excel Discussion (Misc queries) 0 April 4th 07 04:18 PM
print preview v page break preview SamB Excel Discussion (Misc queries) 0 November 16th 06 05:09 PM
cell borders that I create dont show on print preview or print scott3435 Excel Discussion (Misc queries) 2 April 6th 06 02:37 AM
Why does macro speed slow after Excel Print or Print Preview? Larry A[_3_] Excel Programming 6 May 16th 05 11:22 AM
Giving focus to a particular sheet R A Excel Programming 2 December 16th 04 08:20 AM


All times are GMT +1. The time now is 06:22 PM.

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

About Us

"It's about Microsoft Excel"