To work around this behavior, after the
Insert Picture dialog box opens, switch to the view that you want. Or,
you can use the following Visual Basic for Applications macro code in Microsoft Word to switch the view when you open the
Insert Picture dialog box.
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.
For more information about how to use the sample code in this article, click
the article number below to view the article in the Microsoft Knowledge
Base:
290140
How to run sample code from Knowledge Base articles
Sub InsertPicture()
'
' InsertPicture Macro
' Inserts a picture from a graphics file.
' Sets the View to (D)etail with SendKeys.
' View choices [change last Sendkey Letter].
' D - (D)etails view
' G - Lar(g)e Icon view
' L - (L)ist view
' M - S(m)all Icon view
' R - P(r)operties View
' V - Pre(v)iew View
' T - (T)humbnails View
SendKeys ("%L{LEFT}D")
Application.Dialogs(wdDialogInsertPicture).Show
End Sub