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 PrintOut_Method

I need some help printing to a file.

I am trying to understand code written by someone else
(who is not available). I am using the Immediate Window,
but this Window only holds a limited amount of
information. I have inserted "Stop" commands, but I've
gotten confused trying to follow the code's logic. I've
inserted a LOT of Debug.print commands. Now, I'd like to
just print all the information to a file and study the
file.

I've tried the following code:

ActiveSheet.PrintOut

and the worksheet is printed on the printer.

Then I tried the following code:

ActiveSheet.PrintOut printtofile:=True,
prtofilename:="Print Out Method Example.txt"

VBA created the fle, but I do not get anything from the
worksheet. I do get all of the driver setup information
for every printer on the LAN I have access to.

Does anyone have any suggestions?

Thanks in advance,

Shorty

 
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



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