-
print files form dialog
hi everybody
I'm using this code to save xlsm files in a folder.
[vba]' Opslaan_Als Macro
Dim SheetName As String
SheetName = InputBox(Prompt:="new filename:", _
Title:="name")
If SheetName = "" Then GoTo End
ActiveWorkbook.SaveAs "C:\Documents and Settings\xx\xx\2011\" & SheetName & ".xlsm"
ActiveWorkbook.Close
Exit Sub
End:
MsgBox "false not valid!", vbCritical, "Error"
End Sub[/vba]
Is it possible when I want to print a file that exists in that folder, we can call it and then print??
The print will be called from a dashboard.
anybody?
Last edited by Aussiebear; 04-27-2011 at 01:28 PM.
Reason: added VBA Tags to code
-
Í'm sure it's possible, I'll have to see if I find some code a used some time ago and edit it for non-opened workbooks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules