By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,345 Members | 2,404 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,345 IT Pros & Developers. It's quick & easy.

Image loader for Powerpoint... is this the right scripting to use?

P: 1
Pretty basic... well maybe it is in visual basic I don't know, can you help?

Can I use as a string in visual basic to automate a powerpoint; to take on multiple (5) images from a folder location - (usb stick).. and how do I program power point to do this.. does the script work on a cd on loading the presentation, or does it reside in powerpoints architecture...?

Do you know a script to do this?
Jan 22 '08 #1
Share this Question
Share on Google+
1 Reply


kadghar
Expert 100+
P: 1,295
Pretty basic... well maybe it is in visual basic I don't know, can you help?

Can I use as a string in visual basic to automate a powerpoint; to take on multiple (5) images from a folder location - (usb stick).. and how do I program power point to do this.. does the script work on a cd on loading the presentation, or does it reside in powerpoints architecture...?

Do you know a script to do this?
Well, yes it's possible using the VBA of your PPT, and should be easy if the images have the right name (e.g. MyPic1.jpg, MyPic2.jpg...MyPic5.jpg)
so we can use a FOR:

Expand|Select|Wrap|Line Numbers
  1. dim i as integer
  2. for i = 1 to 5
  3. ActiveWindow.Selection.SlideRange.Shapes.addpicture(FileName:="C:\myPath\MyPic" & i & ".jpg").Select
  4. next
Something like that should do.

HTH
Jan 22 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.