Monday, December 20, 2010
【 Weak current College 】 1 second high speed in PPT, insert 100 pictures
If you want to insert the dozens or even hundreds of pictures, and requires each picture is inserted to each slide page (that is, there are a few photos will have a few slides) how would you do?
According to the commonly used essentials click "Insert → photo → from file" menu command, and then a picture of a choice needs to be, or click on "format → background" command, use a picture as the background import PowerPoint, so too a waste of time. In this case, you can use PowerPoint powerful macro functions, multiple-step operation into a step, bulk insert picture.
Step 1: first prepare pictures, assumes that c: following Pictures folder with 100 pictures jpg format, such as "C:\Pictures\2.jpg C:\Pictures\1.jpg," "," "C:\Pictures\3.jpg", the file name is ordered.
Step 2: start PowerPoint2003, press ALT + F11 to open the Editor window, click on the VisualBasic "insert → modules" menu command in the pop-up code edit window, enter the following code:
SubInsertPic()
DimiAsInteger
Fori=1ToActivePresentation.Slides.Count
ActivePresentation.Slides(i).Select
WithActiveWindow.Selection.SlideRange
.FollowMasterBackground=msoFalse
.Background.Fill.UserPicture"C:\Pictures\"&i&".jpg"
EndWith
Next
EndSub
Step 3: turn off the VisualBasic Editor window, above the module code is automatically saved. At this point, press CTRL + M key establishment and picture number (e.g.: 100) of multiple blank slides. Press ALT + F8 to open the macro dialog box, select we established InsertPic macro above, click on "run", 100 pictures soon inserted automatically into the slide.
Labels:
[:]
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment