Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I need a way to setting up excel to "print to fit" fom MS Access using
Automation or OLE. The VBA code below allows to print the excel.xls file, now I need the ability to print to fit on a letter size paper (original is 11x17). This is my code for print the Excel from Access: Function printxls(filename As String) Static xlApp As Variant Static xlBook As Variant Static xlSheet As Variant Static path As String Set xlApp = CreateObject("Excel.Application") path = "c:\chart\" Set xlBook = xlApp.Workbooks.Open(path & filename & ".xls") Set xlSheet = xlBook.Worksheets(1) xlSheet.PrintOut xlBook.Close (False) xlApp.Quit Set xlApp = Nothing Set xlBook = Nothing End Function What would I need to do to cause it to print my excel.xls (11x17) to a letter?? Thanks! Gary |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
printing automation | Excel Discussion (Misc queries) | |||
Turn off printing status dialog with Excel automation | Excel Programming | |||
Printing Text from Excel Automation | Excel Programming | |||
Excel Web Automation | Excel Programming |