LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default PrintPreview in I.E. ???

I just noticed that IE7's Print Preview option works fine most of the time.
But if I have an XLS file loaded into IE7 then the Print Preview option is
grayed! So I'm sure that's why my command button on my XLS file with the
..PrintPreview statement is bombing. Some of my users like viewing XLS files in
IE7 (for some reason) ... otherwise I would tell them to save the XLS file on
their computer and then launch Excel to view it.

Anyone know why my IE7's Print Preview option is disabled any time IE7 views
any XLS file??

Thanks,
Brad



Mark Ivey wrote:

I had a similar problem recently...

Try to fire the macro from IE manually using the TOOLS | MACRO | MACROS...
and see if it will work at all.

In my situation, I was able to run it manually but the button I had on the
worksheet would not work while I had it open in IE.

If there is a solution to this issue, I have not found it yet. I think it
may have something to do with IE's security settings, but I have not put my
finger on it yet.

Mark Ivey

"Brad Stone" wrote in message
...
Hi there,

I'm using Excel 2003. I have a worksheet with a button on it that
does a PrintPreview. The button works fine in the Excel 2003
environment. But when a user loads my .XLS into Internet Explorer (I
assume IE automates Excel) the button fails and gives an error like:
Run-time error: 1004 Method 'PrintPreview' of object 'Sheets' failed

The code behind my button looks like:
ActiveWindow.SelectedSheets.PrintPreview

But I have also tried:
ThisWorkbook.Worksheets("Sheet1").Activate
ThisWorkbook.Worksheets("Sheet1").PrintPreview

They both work in the Excel 2003 environment but both fail if the .XLS
is run from Internet Explorer. My users really like using I.E. to open
XLS files in, so any workaround is creately appreciated!

Thanks,
Brad


 
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
PrintPreview error when run from VBA Corey Excel Programming 1 December 19th 07 10:17 PM
PrintPreview Gerry Verschuuren Excel Discussion (Misc queries) 5 October 23rd 07 06:24 PM
PrintPreview problem rpw Excel Programming 3 April 24th 07 04:38 PM
.PrintPreview André Boileau Excel Programming 2 February 9th 07 02:31 AM
printpreview Alex Excel Programming 5 September 12th 05 10:26 PM


All times are GMT +1. The time now is 07:17 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"