Wrox Programmer Forums
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 13th, 2006, 10:29 PM
Registered User
 
Join Date: Jul 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Printout Error?

I have many command "print" buttons on every page of a workbook. They are invidividually set up to print a specific range. When I use this at home, it works fine, when I send it to a user at work the print functions do not work. I assume because I have a different printer at home then we do at work. Is there a way to automatically print to any computers default printer?

If there is a code that would work, where do I put it?
The print button currently is:

Code:
Private Sub CommandButton1_Click() 
    ActiveSheet.Range("A1:G9").PrintOut 
End Sub
I have seen many examples of different codes but I am not sure on how to use them correctly.

Thanks for your help







Similar Threads
Thread Thread Starter Forum Replies Last Post
Immediate window, incomplete printout VictorVictor ASP.NET 2.0 Professional 6 March 20th, 2007 08:48 AM
Listbox printout scriptingit Access VBA 0 August 28th, 2006 08:59 AM
Printout Of MsAccess Table rupesh_india Crystal Reports 0 August 19th, 2006 06:45 AM
updated printout problem jicker VB Databases Basics 2 August 3rd, 2004 08:16 AM
How to Get printout.............. arshad mahmood VB Databases Basics 1 August 11th, 2003 08:50 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.