Insert picture with VBA

G

Guest

I am using PowerPoint 2002

Basically I want to click one button and it brings up the browser to choice
the picture I would like to insert. If you used the menu it would be Insert>
picture > From File. I have also seen a placeholder (Click icon to add
content) that has insert picture icon on it but it also has Insert table,
Insert Chart, Insert Clip Art, etc this would work but only if there was just
the Insert Picture Icon.

I would also like to have a preview of the image like in the Insert>
picture > From File.

I have seen postings where the path of the file is hard coded in VBA or you
type it in. This is not what I am looking for.

Any suggestion?
 
B

Bill Dilworth

If there is a button (regardless of how nested in sub-menus it is) than you
can place that button on any menu bar you want. Just use the Customize
toolbars options.

Under PowerPoint -> Help -> "add button toolbar" you should get the details
on how to add a button to a toolbar.


--
Bill Dilworth
A proud member of the Microsoft PPT MVP Team
Users helping fellow users.
billdilworth.mvps.org
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
yahoo2@ Please read the PowerPoint
yahoo. FAQ pages. They answer most
com of our questions.
www.pptfaq.com
..
..
 
G

Guest

Thanks Bill, but for this projects I am sure if I can modify the menu on
someone else’s computer. I was hoping for some code that I would open the
insert picture dialog? I know I can do it in word with

Private Sub CommandButton1_Click()
Dialogs(wdDialogInsertPicture).Show
End Sub

Is there something similar in PowerPoint? I would then like to size and
position it via code.
 

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