L
Lars P
I would like to make a macro in Word that opens the object
dialogue box, automatically selects a specific icon for
the object (the same icon for all the objects) and opens
the folder where the object files will be found. The only
thing the user of the macro will have to do, is to select
the object file it self.
Since I have very little experience with Visual Basic, my
efforts have so far failed. If anyone could lead me in the
right direction, I would be very thankful.
With Dialogs(wdDialogInsertObject)
.LinkToFile = True
.DisplayAsIcon = True
.IconFileName = "D:\ikoner\093.ICO"
.Show
End With
..only leads to "run-time error 438"
Regards
Lars P
dialogue box, automatically selects a specific icon for
the object (the same icon for all the objects) and opens
the folder where the object files will be found. The only
thing the user of the macro will have to do, is to select
the object file it self.
Since I have very little experience with Visual Basic, my
efforts have so far failed. If anyone could lead me in the
right direction, I would be very thankful.
With Dialogs(wdDialogInsertObject)
.LinkToFile = True
.DisplayAsIcon = True
.IconFileName = "D:\ikoner\093.ICO"
.Show
End With
..only leads to "run-time error 438"
Regards
Lars P