Teach you how to quickly insert a large number of pictures in ppt
When Microsoft Office and Microsoft VB in the macro features meet, you can create powerful features, such as in this article on the use of these two tools to insert hundreds of images in an instant. What would you do if you were to insert dozens of or even hundreds of of pictures and ask each picture to be inserted on each slide page (that is, there are several slides)?
It's a waste of time to click on the "insert → picture → from file" menu command, and then choose the picture you want, or click the "format → background" command to import the picture as a background for PowerPoint. In this case, you can use PowerPoint's powerful macro functionality to combine MULTI-STEP operations into one step and bulk insert pictures.
The first step: Prepare the picture first, assume in the Pictures folder below C disk has 100 jpg picture, such as "c:pictures1.jpg", "c:pictures2.jpg", "c:pictures3.jpg" and so on, The filename is an ordered number;
Step two: Start PowerPoint, press Alt+f11 to open the VisualBasic Editor window, click the "Insert → module" menu command, and enter the following code in the pop-up Code editing window: 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 three: Close the VisualBasic Editor window, and the above module code will be saved automatically. At this point, press ctrl+m continuously to create multiple blank slides that are equal to the number of pictures (for example: 100). Press Alt+f8 to open the Macro dialog box, select the INSERTPIC macro we established above, click "Run", 100 pictures will be automatically inserted into the slide
Note : More attention to the computer tutorials column, Triple Computer Office Group: 189034526 welcome you to join the