Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Print & Close Buttons in Print Preview grayed-out when '07 script

I wrote a little script that imports and then manipulates data on a number of
worksheets and then sorts and formats that data in preparation for printing.
It then brings up the report in a print preview window and waits for the user
to either print or close and then moves on to a second report and third and
fourth stopping at each for the user to decide to print or close the preview.
This worked like a charm in 2003 and previous versions but when we moved to
2007 it has a rather major problem--namely the bottons to print and to close
are grayed out. What's changed and what do I need to change to fix this? Your
help is greatly apprecaited! Thanks in advance!

In case it's helpful, I use

ActiveWindow.SelectedSheets.PrintPreview

to print preview.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 119
Default Print & Close Buttons in Print Preview grayed-out when '07 script

Try ActiveSheet.PrintOut Preview:= True

It works for me in the way you are describing.
--
I am running on Office 2003, unless otherwise stated.


"ArielZusya" wrote:

I wrote a little script that imports and then manipulates data on a number of
worksheets and then sorts and formats that data in preparation for printing.
It then brings up the report in a print preview window and waits for the user
to either print or close and then moves on to a second report and third and
fourth stopping at each for the user to decide to print or close the preview.
This worked like a charm in 2003 and previous versions but when we moved to
2007 it has a rather major problem--namely the bottons to print and to close
are grayed out. What's changed and what do I need to change to fix this? Your
help is greatly apprecaited! Thanks in advance!

In case it's helpful, I use

ActiveWindow.SelectedSheets.PrintPreview

to print preview.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Print & Close Buttons in Print Preview grayed-out when '07 scr

Thanks for your response. Unfortunately this doesn't fix it for me. From your
sig it looks like you are using office 2003, am I right? If so, like i
mentioned in my original post my current code works in 2003 and earlier
versions... it's in 2007 that it isn't working. Anyone have any suggestions
for 2007? Thanks!

"Orion Cochrane" wrote:

Try ActiveSheet.PrintOut Preview:= True

It works for me in the way you are describing.
--
I am running on Office 2003, unless otherwise stated.


"ArielZusya" wrote:

I wrote a little script that imports and then manipulates data on a number of
worksheets and then sorts and formats that data in preparation for printing.
It then brings up the report in a print preview window and waits for the user
to either print or close and then moves on to a second report and third and
fourth stopping at each for the user to decide to print or close the preview.
This worked like a charm in 2003 and previous versions but when we moved to
2007 it has a rather major problem--namely the bottons to print and to close
are grayed out. What's changed and what do I need to change to fix this? Your
help is greatly apprecaited! Thanks in advance!

In case it's helpful, I use

ActiveWindow.SelectedSheets.PrintPreview

to print preview.


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
have toggle buttons but everytime print preview buttons move TinSandhu Excel Discussion (Misc queries) 1 October 11th 06 02:57 PM
Print Preview Zoom grayed out Excel 2003 mesquite57 Excel Discussion (Misc queries) 0 August 15th 06 07:35 PM
VBA buttons shift around when using Print/Print Preview gunman[_7_] Excel Programming 2 August 19th 05 06:40 PM
how to close print preview Lou Allen Excel Worksheet Functions 1 July 24th 05 03:39 AM
Macro buttons tiled after print / print preview Eddie Chan Excel Programming 2 January 1st 05 02:50 PM


All times are GMT +1. The time now is 02:39 AM.

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"