Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA 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 August 4th, 2005, 03:55 AM
ct ct is offline
Authorized User
 
Join Date: Aug 2005
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default coding for printing in excel

i have a problem to write a coding using VB in excel. actually i have to create a button in excel which is the button is use to print a spreadsheet in excel...for the example..when i click the button..it can automatically print out the spreadsheet...can u help me solve dis problem..tq.

 
Old August 4th, 2005, 12:41 PM
jjd jjd is offline
Authorized User
 
Join Date: May 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

mysheet.printout

 
Old August 4th, 2005, 08:52 PM
ct ct is offline
Authorized User
 
Join Date: Aug 2005
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default

can u help me..can u teach me how to start it..because dont know what is the first thing to write that code..
start from...

Private Sub CommandButton1_Click()

End Sub

how i want to start it..can u teach me plizz..

 
Old August 8th, 2005, 08:05 AM
Authorized User
 
Join Date: Feb 2005
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Private Sub CommandButton1_Click()

mysheet.printout (as posted above..this can be , for example Sheet1.printout)

End Sub

go out of design mode, and click on your commandbutton





Similar Threads
Thread Thread Starter Forum Replies Last Post
Organization chart in Excel through VBA coding mangesh.gohad Excel VBA 0 July 26th, 2008 12:23 PM
Kill Excel after printing completed Bruce VB How-To 5 June 26th, 2006 07:13 AM
Printing excel sheet siddique Excel VBA 3 February 15th, 2005 12:49 AM
Printing using EXCEL object Bruce Pro VB 6 0 January 14th, 2005 10:11 AM
Printing Excel File in ASP hkccwong Classic ASP Basics 1 January 5th, 2005 12:50 AM





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