When using the Insert > Insert Pictures option directly in Word the Insert Picture dialog "All Pictures" File name dropdown filter contains the file extension .svg.
When using VBA to display the dialog, the "All Pictures" File name dropdown filter does not contain the file extension .svg:
Set oDialog = Dialogs(wdDialogInsertPicture)
' Work with dialog
With oDialog
' Display the dialog
.Display
' Insert InlineShape if the Name property (Filepath) <> ""
If .Name <> "" Then
ActiveDocument.InlineShapes.AddPicture FileName:=.Name, _
LinkToFile:=False, _
SaveWithDocument:=True, _
Range:=Selection.Range
End If
End With
Is there a way to get the .svg file extension to display as part of the filter using the VBA Insert Picture Dialog?
This occurs in Microsoft Office 365 ProPlus Version 1908 (Build 11929.20562 Click-to-Run).