Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Print Macros
I'm trying to create a button that will automatically print out a sheet to my
desktop (or possibly another folder) with a specific filename (say, Vendor A) without having to type anything in... Basically press a button and my file is ready to go without any intervention... any help out there? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Print Macros
You want to "print out a sheet to my desktop" ?
As a PDF or which format ? Or do mean save as an Excel file ? NickHK "WBTKbeezy" ... I'm trying to create a button that will automatically print out a sheet to my desktop (or possibly another folder) with a specific filename (say, Vendor A) without having to type anything in... Basically press a button and my file is ready to go without any intervention... any help out there? |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Print Macros
I do mean a PDF actually.
"News" wrote: You want to "print out a sheet to my desktop" ? As a PDF or which format ? Or do mean save as an Excel file ? NickHK "WBTKbeezy" ... I'm trying to create a button that will automatically print out a sheet to my desktop (or possibly another folder) with a specific filename (say, Vendor A) without having to type anything in... Basically press a button and my file is ready to go without any intervention... any help out there? |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Print Macros
Sub CommandButton1()
Dim objShell as Object, objFolder as Object Dim strDeskPath as String Const Desktop = &H10& Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.Namespace(Desktop) strDeskPath = objFolder.Self.Path worksheets("Sheet3").copy Application.DisplayAlerts = False activeworkbook.SaveAs strDeskPath & "\" & "Mybooks.xls" Activeworkbook.Close SaveChanges:=False end sub -- Regards, Tom Ogilvy "WBTKbeezy" wrote: I'm trying to create a button that will automatically print out a sheet to my desktop (or possibly another folder) with a specific filename (say, Vendor A) without having to type anything in... Basically press a button and my file is ready to go without any intervention... any help out there? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
macros for print | Excel Discussion (Misc queries) | |||
Set print area using macros | Excel Discussion (Misc queries) | |||
Two Print Macros for One Worksheet | Excel Discussion (Misc queries) | |||
Problems with simple print macros | Excel Programming | |||
Print Macros | Excel Programming |