none
PowerPoint Display FileNew dialog RRS feed

  • Question

  • Hi,

    I want to display the classic File New dialog in PowerPoint 2010 by code.
    It is very easy in Word - Application.Dialogs(wdDialogFileNew).Display.

    I know that I can show the New tab in PowerPoint with code - CommandBars.FindControl(Id:=18).Execute

    But how to display the dialog that shows when you click on My Templates?

    I have been searching this for days, I really hope that someone has the answer!

    Sambuccus

    Thursday, March 1, 2012 8:34 AM

Answers

  • For powerpoint the code for the file open dialog looks this:

                With ppt.FileDialog(Office.MsoFileDialogType.msoFileDialogFilePicker)
                    .InitialFileName = fName
                    .AllowMultiSelect = False
                    If .Show = 0 Then
                        Me.Show()
                        Exit Sub
                    End If
                    Me.TextBox1.Text = .SelectedItems.Item(1)
                End With

    However, I don't think that's what you're looking for. If what you are after is the below image then I think you'll need to go to the PowerPoint Answers Forum and ask there. They won't necessarily be able to help you with a VSTO coded solution but they might be able to tell you a VBA method that you can convert.

     


    Kind Regards, Rich ... http://greatcirclelearning.com

    • Marked as answer by Bruce Song Wednesday, April 4, 2012 2:43 AM
    Thursday, March 1, 2012 12:42 PM

All replies

  • For powerpoint the code for the file open dialog looks this:

                With ppt.FileDialog(Office.MsoFileDialogType.msoFileDialogFilePicker)
                    .InitialFileName = fName
                    .AllowMultiSelect = False
                    If .Show = 0 Then
                        Me.Show()
                        Exit Sub
                    End If
                    Me.TextBox1.Text = .SelectedItems.Item(1)
                End With

    However, I don't think that's what you're looking for. If what you are after is the below image then I think you'll need to go to the PowerPoint Answers Forum and ask there. They won't necessarily be able to help you with a VSTO coded solution but they might be able to tell you a VBA method that you can convert.

     


    Kind Regards, Rich ... http://greatcirclelearning.com

    • Marked as answer by Bruce Song Wednesday, April 4, 2012 2:43 AM
    Thursday, March 1, 2012 12:42 PM
  • Yes, it is this dialog I want to display.

    I have now asked the same question in the PowerPoint Answers Forum too.

    Sambuccus

    Thursday, March 1, 2012 5:44 PM