Printing

  • Thread starter Thread starter nath
  • Start date Start date
N

nath

Hi,

I am running a module whilst i am not in the office each
evening. It creates a log to a text file of what has
happened and how it went i.e. Success/Fail.

How do i open this text file and print it once the module
is complete?

TIA

Nath.
 
make sure the file suffix is .txt and use File/Open (perhaps .csv wil
work ?)

Go from ther
 
workbooks.open "C:\MyLogs\Myfile.txt
ActiveSheet.Printout
ActiveWorkbook.Close SaveChanges:=False
 
-----Original Message-----
make sure the file suffix is .txt and use File/Open (perhaps .csv will
work ?)

Go from there


---
Message posted

.
Hi there,

I was enquiring about how to print with code, so it is
printed when i come in in the morning.

Is this possible.

Thanks

Nathan.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top