View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Curtis[_4_] Curtis[_4_] is offline
external usenet poster
 
Posts: 1
Default Excel vba printout method

Hello all,

I've went throw all posts on vba excel printout codes and none worked.

I am using excel to create a file and i want to save it in pdf format
but dont want the popup that asks the filename to save under

here is the code that i'm using:

Application.ActivePrinter = "Adobe PDFWriter sur LPT1:"
ActiveWorkbook.SaveAs FileName:="C:\toto.xls"
ActiveWorkbook.PrintOut

I've tried specifying parameter of printout with no success

Help please
Curtis