Application.dialogs and PDF - again

J

John

I'm posting this again after 9 days because I never got a response the first
time:

With application.dialogs how can I open the "Publish PDF or XPS" dialog box
in Excel 2007? I want the user to be able to choose the file name and folder
for saving a PDF file.
 
J

Jim Cone

As far as I know there is no Publish Pdf/Xps dialog box in Excel.
Maybe...

With Application.FileDialog(msoFileDialogFolderPicker)
.Show
MsgBox .SelectedItems(1)
End With

Options for FileDialog...
msoFileDialogFilePicker
msoFileDialogFolderPicker
msoFileDialogOpen
msoFileDialogSaveAs
--
Jim Cone
Portland, Oregon USA
http://www.contextures.com/excel-sort-addin.html
(add-in with 30 + ways to sort)

..
..
..

"John" <[email protected]>
wrote in message
I'm posting this again after 9 days because I never got a response the first
time:
With application.dialogs how can I open the "Publish PDF or XPS" dialog box
in Excel 2007? I want the user to be able to choose the file name and folder
for saving a PDF file.
 
G

GS

After serious thinking John wrote :
I'm posting this again after 9 days because I never got a response the first
time:

With application.dialogs how can I open the "Publish PDF or XPS" dialog box
in Excel 2007? I want the user to be able to choose the file name and folder
for saving a PDF file.

Try...

Application.Dialogs(xlDialogSaveAs).Show

and have the user choose "PDF (*.pdf)" from the file type dropdown.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top