ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Possible to print a string? (https://www.excelbanter.com/excel-programming/320548-possible-print-string.html)

quartz[_2_]

Possible to print a string?
 
Is it possible to send a string directly to a printer?

Or would I need to dump it into a temp sheet and print from there instead?

Thanks in advance for your thoughts and example function(s).

Dave Peterson[_5_]

Possible to print a string?
 
Option Explicit
Sub testme01()
Open "LPT1:" For Output As #1
Print #1, "An error occurred!"
Close #1
End Sub



quartz wrote:

Is it possible to send a string directly to a printer?

Or would I need to dump it into a temp sheet and print from there instead?

Thanks in advance for your thoughts and example function(s).


--

Dave Peterson


All times are GMT +1. The time now is 08:57 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com