A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Powerpoint, Publisher and Visio » Powerpoint
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Insert picture with VBA



 
 
Thread Tools Display Modes
  #1  
Old April 24th, 2005, 01:21 PM
wschiro
external usenet poster
 
Posts: n/a
Default Insert picture with VBA

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?

  #2  
Old April 25th, 2005, 03:32 AM
Bill Dilworth
external usenet poster
 
Posts: n/a
Default

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
..
..

"wschiro" wrote in message
news
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?



  #3  
Old April 25th, 2005, 06:14 AM
wschiro
external usenet poster
 
Posts: n/a
Default

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.

"Bill Dilworth" wrote:

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
..
..

"wschiro" wrote in message
news
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?




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up protected document that can insert picture (photo ID template) Craig Page Layout 5 July 13th, 2007 01:15 PM
How can I insert a picture in pdf format into powerpoint? Trang Powerpoint 3 January 14th, 2005 03:33 AM
Insert Picture Jimmy Setting up and Configuration 2 October 15th, 2004 02:22 AM
Insert picture onto form Phil Using Forms 0 September 16th, 2004 01:56 PM
How to insert picture based on numeric value in another cell? James Norton Worksheet Functions 16 August 24th, 2004 09:58 PM


All times are GMT +1. The time now is 01:57 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.