graphic toolbar button

B

Beth Mc

What if we want to create a button on the toolbar in Word
(97) that will, when the user clicks on it will place a
graphic in the document.

Is this possible?

Thanks again,
Beth Mc
 
D

DA

Hi Beth

If you're not that familiar with VBA and want to keep
things simple, why don't you just use the macro recorder
to capture the action of inserting the picture and then
make a new toolbar button to assign to that macro.

Failing that and if you want to write the VBA routine,
use something like this:

Sub InsertMyPic()
Selection.InlineShapes.AddPicture FileName:= _
"C:\picFileName.bmp"
End Sub

Hope that helps,
Dennis
 
Top