Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I need to print Excel workbooks from an Access vba application, and usually this works without any troubles. In some cases though, when running oExcel.Application.ActiveWorkbook.WorkSheets(arr). PrintOut where the array contains the names of all visible sheets in the workbook, some of the sheets don't print. I've checked that the names are correct in the array. I've also tried different functions like ActiveWorkbook.Printout, ActiveWindow.SelectedSheets.Printout (when I know that all the sheets are selected) etc For some reason som of the sheets don't print. If I open the excel doc manually and prints the workbook then every visible sheet is printed. Does anyone have any idea what can be done to avoid this, or is it something done in the creation of the Excel docs perhaps? (Can't really do much about that. We have around 60 people all over Europe creating these documents) |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If you braek it up do they all print
Dim WS as worksheet for each ws in oExcel.Application.ActiveWorkbook.WorkSheets(arr) ws.printout next NickHK wrote in message oups.com... Hi, I need to print Excel workbooks from an Access vba application, and usually this works without any troubles. In some cases though, when running oExcel.Application.ActiveWorkbook.WorkSheets(arr). PrintOut where the array contains the names of all visible sheets in the workbook, some of the sheets don't print. I've checked that the names are correct in the array. I've also tried different functions like ActiveWorkbook.Printout, ActiveWindow.SelectedSheets.Printout (when I know that all the sheets are selected) etc For some reason som of the sheets don't print. If I open the excel doc manually and prints the workbook then every visible sheet is printed. Does anyone have any idea what can be done to avoid this, or is it something done in the creation of the Excel docs perhaps? (Can't really do much about that. We have around 60 people all over Europe creating these documents) |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Yes they all print then, but that doesn't solve my problem. The thing
is that I print these sheets through a pdf converter and if I print each sheet independently I suddenly have the same number of pdfs as there are sheets in the Excel document. This would leave me with the task to try and merge heaps of pdfs into one to upload the completed final document to the server. Is this a bug in the PrintOut function that it sometimes skips certain sheets when printing a compelte workbook? Vegard NickHK wrote: If you braek it up do they all print Dim WS as worksheet for each ws in oExcel.Application.ActiveWorkbook.WorkSheets(arr) ws.printout next NickHK wrote in message oups.com... Hi, I need to print Excel workbooks from an Access vba application, and usually this works without any troubles. In some cases though, when running oExcel.Application.ActiveWorkbook.WorkSheets(arr). PrintOut where the array contains the names of all visible sheets in the workbook, some of the sheets don't print. I've checked that the names are correct in the array. I've also tried different functions like ActiveWorkbook.Printout, ActiveWindow.SelectedSheets.Printout (when I know that all the sheets are selected) etc For some reason som of the sheets don't print. If I open the excel doc manually and prints the workbook then every visible sheet is printed. Does anyone have any idea what can be done to avoid this, or is it something done in the creation of the Excel docs perhaps? (Can't really do much about that. We have around 60 people all over Europe creating these documents) |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Printing file names on docs | Excel Discussion (Misc queries) | |||
Printing Embedded Word Docs | Excel Discussion (Misc queries) | |||
Docs printing smaller than print preview now that 2007 installed | Excel Discussion (Misc queries) | |||
Embedding Word Docs into Excel Worksheets and Then Printing The Word Docs | Excel Worksheet Functions | |||
converting excel docs to word docs | New Users to Excel |