![]() |
| |||||||
| Computer Juice raffle - Win PC hardware of your choice worth 500 / 680 / $1000 - Enter HERE! |
| |
Computer Juice - Forums - Print Macro |
![]() |
| | LinkBack | Thread Tools |
|
#1
| ||||
| ||||
Print MacroI need to know how to create a macro so that when i press a command button a wrksheet will print two copies of the cell range. Thanks |
| |
|
#2
| ||||||||||||
| ||||||||||||
Print MacroHave you selected a spreadsheet program to do this in yet?
__________________
My System: Tim
Want your system info in your signature? |
|
#3
| ||||
| ||||
Print Macroyeh sorry its in excel |
|
#4
| ||||||||||||
| ||||||||||||
Print MacroAny particular version of excel? I hate to be pushy but.
__________________
My System: Tim
Want your system info in your signature? |
|
#5
| ||||
| ||||
Print Macrowell at home im usin 2007, but im out atm so im usin 2003 where i am atm |
|
#6
| ||||||||||||
| ||||||||||||
Print Macrookay, this ought to work on both.
__________________
Sub PrintRange() ' ' PrintRange Macro ' This will print 2 copies of a worksheet preselected range ' Application.ScreenUpdating = False Sheets("Sheet1").Select ActiveSheet.Unprotect ActiveWindow.Range("C5:D17").PrintOut Copies:=2 Application.ScreenUpdating = True End Sub If you have trouble creating a button or hooking the code to it then say and we'll talk you through it. My System: Tim
Want your system info in your signature? |
|
#7
| ||||
| ||||
Print MacroSorry for a delayed response. Thanks I will try this and will give you feedback as soon as possible :) |
|
#8
| ||||||||||||
| ||||||||||||
Print MacroWhat's in that example is fairly random, I've no idea whether you've multiple sheets or you've protected areas or you want to end up somewhere different after the macro's run than where you were when you clicked it. Or whether your worksheet range is based on labels or on hard cell addresses. I suggest you play with the syntax a bit, the line that does all the work is
__________________
ActiveWindow.Range("C5:D17").PrintOut Copies:=2 and you can change that to your heart's content. My System: Tim
Want your system info in your signature? |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Print Screen function | VJH | Digital Imaging & Printers | 7 | 07-12-2007 08:49 AM |
| When I try to print something off my computer... | whattheheck | Multimedia, Drivers & Codecs | 3 | 23-04-2007 12:04 AM |
| can you print on a transparency using... | big bike biker | Digital Imaging & Printers | 1 | 31-03-2007 10:40 PM |
| Digital camera question... digital macro? | Gertrude | Digital Imaging & Printers | 1 | 31-03-2007 03:05 PM |
| The print size and color in YIM won't stay as I set it. | 知道 wo zhi dao | Email, VoIP & IM Discussion | 1 | 19-03-2007 12:00 AM |
| Powered by vBulletin® Copyright ©2000 - 2008 Jelsoft Enterprises Ltd. SEO by vBSEO ©2007, Crawlability, Inc. |