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: 1
Default Print & Print Preview crashes

Hello, I have created a lovely macro that builds reports and then
emails them out to people, and i am very proud of it. The reports that
go out are perfect except in one respect...

If you try to print or print preview, they crash excel with an error
message about not being able to read from a memory location.

This is all done in Office 2000 and Windows 2000, all our machines
will print and print preview other files (even other sheets in the
same workbook), but all machines resolutely refuse to print these
reports.

the following code sets up the print settings:

' And set up the print size for the recipient
With ActiveSheet.PageSetup
.Orientation = xlLandscape
.Zoom = False
.FitToPagesWide = 1
.FitToPagesTall = False
.PrintArea = ""
.TopMargin =
Application.InchesToPoints(0.590551181102362)
' Repeat the headings on each printed page
.PrintTitleRows = "$1:$7"
.PrintTitleColumns = ""
' And set up the footer
.LeftFooter = "Printed: &D"
.CenterFooter = "Page &P of &N"
.RightFooter = "&Z&F"

there are subtotals on the sheet, and the books are password
protected, but otherwise there is nothing unusual. Any ideas? I am at
the end of my rope!

Thanks
 
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
Plot Area Automatically Expands in Print and Print Preview Myk D. Charts and Charting in Excel 2 March 12th 09 01:41 PM
First page of Excel sheerepeats in print layout or print preview philfrotonda Excel Discussion (Misc queries) 1 July 12th 07 09:28 PM
Print and Print Preview Graphic Moving Resizing 2007/2003 Adam Rayburn Excel Discussion (Misc queries) 0 April 4th 07 04:18 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
Can view file in print preview, but not print layout.... kkaden Excel Discussion (Misc queries) 1 March 22nd 06 05:54 PM


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

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"