borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2010 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Access VBA manipulate UK Postcodes)Next Topic (RS232 data to MS Access database) New Topic New Poll Post Reply
AndreaVB Forum : VBA (Access, Excel, Word, ...) : Printing all worksheets in a workbook as a single file..
Poster Message
Jade
Level: Trainee

Registered: 29-04-2010
Posts: 1

Ads by Lake Quincy Media
icon Printing all worksheets in a workbook as a single file..

Hi,

This may seem as a repetitive post but instead of macro progg or even VBA progg I am using VB6 to print worksheets present in a workbook as a single file. Code for the same is posted below...

###############################

xlApp.Worksheets("Sheet1").Select Replace:=False
xlApp.Worksheets("Sheet2").Select Replace:=False
xlApp.ActiveWindow.SelectedSheets.PrintOut Copies:=1

###############################

Above code prints only the current sheet..

Any ideas..?

Thanks
Jade

Ads by Lake Quincy Media
29-04-2010 at 09:39 AM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
AndreaVB Forum : VBA (Access, Excel, Word, ...) : Printing all worksheets in a workbook as a single file..
Previous Topic (Access VBA manipulate UK Postcodes)Next Topic (RS232 data to MS Access database) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2010 Andrea Tincaniborder