How do I set up an Excel macro for printing one sheet into .mdi file with preset name?
-
Need help on printing one Excel sheet into Microsoft Office Document Imaging file with preset (cell K1) value for the "save file name". I can save the entire excel workbook this way, but it doesnt work for print-saving a file. I got this far: Sub NATP() MsgBox "Message..." ' With Application .DefaultFilePath = "D:" End With Sheets("List2").Select Thisfile = Range("K1").Value ' K1 contains the name for the file FileDrive = "D:\TARGET FOLDER\" ' ActiveWindow.SelectedSheets.PrintOut Printtofile:=True, ActiveWindow.SelectedSheets.PrintOut Filename:=FileDrive & Thisfile & ".mdi", Copies:=1, Collate:=True ' FileFormat:=xlNormal, Password:="", WriteResPassword:="", _ ' ReadOnlyRecommended:=False, CreateBackup:=False Range("K1").Select End Sub
-
Answer:
Got to http://www.mrexcel.com register for free and post your question there. It’s an excellent question forum with loads of Excel experts on hand just wanting to help. Post your code as well as your question.
ujambor at Yahoo! Answers Visit the source
Related Q & A:
- How do you set just a general macro on your keyboard?Best solution by microsoft.com
- How do I scan multiple pages and email them into one file?Best solution by h30434.www3.hp.com
- How can I set up my computer to alert me when I get an incoming email?Best solution by Yahoo! Answers
- How do I set up wireless printing?Best solution by Stack Overflow
- How do I set up my set top box?Best solution by Server Fault
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.