How can I get a macro to pause

L

Lars P.

I am recording a macro in Word 2000 that opens the Object
dialogue box, finds a specific Icon for the object and
finds the folder that contains the file I want to put in
as an object. Since the object file will vary from time to
time, how can I get the macro to pause so I can choose the
file manually?

I am very thankful for any help.

Lars P.
 
D

Doug Robbins - Word MVP

Use:

Dialogs(wdDialogInsertObject).Show

--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 
G

Guest

-----Original Message-----
Use:

Dialogs(wdDialogInsertObject).Show

Hope this helps
Doug Robbins - Word MVP

Thanks a lot! But how can I do it when I want the icon for
the object and the folder to find the object files to be
preselected, while the end user only will be choosing the
object file it self.

I tried with this,

With Dialogs(wdDialogInsertObject)
.LinkToFile = True
.DisplayAsIcon = True
.IconFileName = "D:\ikoner\093.ICO"
.Show
End With

But then I only get "Run-time error 438"

Newbie
Lars P
 

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