Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default Printing using VBA

Hi,

I was wondering if it is possible to print text an error
report (currently a test string) straight to the default
printer.

If not then does anyone have any good ideas to print out
error reports?

Thanks for any help,
Steven
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Printing using VBA

How about:

Option Explicit
Sub testme03()
Open "LPT1:" For Output As #1
Print #1, "An error occurred!"
Close #1
End Sub

Steven Revell wrote:

Hi,

I was wondering if it is possible to print text an error
report (currently a test string) straight to the default
printer.

If not then does anyone have any good ideas to print out
error reports?

Thanks for any help,
Steven


--

Dave Peterson

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
Excel 2003 printing problem--printing 1 document on 2 pages Bons Excel Discussion (Misc queries) 0 December 24th 09 04:15 PM
PRINTING Ra Excel Discussion (Misc queries) 0 May 29th 09 04:02 PM
Excel Printing --Borders are not printing on the same page as data Stup88 Excel Discussion (Misc queries) 1 August 7th 07 09:34 AM
Printing a heading on each new page when printing Brian Excel Discussion (Misc queries) 3 November 15th 06 05:22 PM
Enable Double sided printing contiuously when printing multiple s. Lee Excel Discussion (Misc queries) 1 November 27th 04 01:58 AM


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