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


Hi!
Is there a way I can test a macro that prints 45 separate named ranges
(45 sheets of paper) without actually printing? I am fairly new to this
macro writting and I want to make sure it all works.
Thanks!!


--
Brian Matlack
------------------------------------------------------------------------
Brian Matlack's Profile: http://www.excelforum.com/member.php...fo&userid=3508
View this thread: http://www.excelforum.com/showthread...hreadid=487186

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Testing Print Macro

Hi Brian,

Try usung the PrintPreview method:

Worksheets("Sheet1").PrintPreview


---
Regards,
Norman



"Brian Matlack"
wrote in message
...

Hi!
Is there a way I can test a macro that prints 45 separate named ranges
(45 sheets of paper) without actually printing? I am fairly new to this
macro writting and I want to make sure it all works.
Thanks!!


--
Brian Matlack
------------------------------------------------------------------------
Brian Matlack's Profile:
http://www.excelforum.com/member.php...fo&userid=3508
View this thread: http://www.excelforum.com/showthread...hreadid=487186



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Testing Print Macro


Norman:
I am currently selecting each named range and printing it and the
moving on to the next range.

Is there a way I can print preview all the pages in one preview (ther
are 45 named ranges on 8 different worksheets)?

If not! Per your suggestion I could insert the preview code instead o
the print code and then just verify the view and when I close th
preview window the macro should continue.

Thanks!

--
Brian Matlac
-----------------------------------------------------------------------
Brian Matlack's Profile: http://www.excelforum.com/member.php...nfo&userid=350
View this thread: http://www.excelforum.com/showthread.php?threadid=48718

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Testing Print Macro

Hi Brian,

Try:
Sheets.PrintPreview

See also Ron de Bruin at:

http://www.rondebruin.nl/print.htm#Print

for numerous print tips.

---
Regards,
Norman



"Brian Matlack"
wrote in message
news:Brian.Matlack.1ywidm_1132667703.0782@excelfor um-nospam.com...

Norman:
I am currently selecting each named range and printing it and then
moving on to the next range.

Is there a way I can print preview all the pages in one preview (there
are 45 named ranges on 8 different worksheets)?

If not! Per your suggestion I could insert the preview code instead of
the print code and then just verify the view and when I close the
preview window the macro should continue.

Thanks!!


--
Brian Matlack
------------------------------------------------------------------------
Brian Matlack's Profile:
http://www.excelforum.com/member.php...fo&userid=3508
View this thread: http://www.excelforum.com/showthread...hreadid=487186



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
Testing Spreadsheet Cells while in a Macro Amaross Excel Discussion (Misc queries) 2 May 2nd 06 09:03 PM
Pivot Table macro to set print area and print details of drill down data Steve Haskins Excel Discussion (Misc queries) 2 December 28th 05 04:59 PM
Run only part of a macro for testing Josh O. Excel Programming 4 May 19th 05 04:49 PM
Testing in a macro for bad range name? Don Wiss Excel Programming 1 November 3rd 04 02:26 AM
Macro Date Testing BKBK Excel Programming 0 October 28th 04 05:42 PM


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