How do you open an MDI FILE?

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

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

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.