Home > Software Tutorial > Office Software > A simple operation to insert n multiple pictures in one second in PPT

A simple operation to insert n multiple pictures in one second in PPT

WBOY
Release: 2024-04-17 13:47:15
forward
1159 people have browsed it

Prepare the pictures, type the picture file names with sequential numbers, such as: 1.jpg, 2.jpg..., and put them in the pictures file. If they are placed in the D drive, then as shown in the picture

A simple operation to insert n multiple pictures in one second in PPT

Open the interface of PPT2003

A simple operation to insert n multiple pictures in one second in PPT

Press the shortcut key ctrl m, and press it continuously to create multiple blank slides. Create as many blank slides as you want to insert, that is, press as many times as you want. Press the shortcut key.

A simple operation to insert n multiple pictures in one second in PPT

Press the shortcut key alt f11 to open the Visual Basic editor window, right-click] Insert [, then click] template [

A simple operation to insert n multiple pictures in one second in PPT

in the pop-up Enter the following code in the code editing window:

Sub InsertPic()

Dim i As Integer

For i = 1 To ActivePresentation.Slides.Count

ActivePresentation.Slides(i).Select

With ActiveWindow.Selection.SlideRange

.FollowMasterBackground = msoFalse

.Background.Fill.UserPicture "D: Pictures" & i & ".jpg"

End With

Next

End Sub

Close after entering the code. Press the shortcut key alt f8 again to open the macro dialog box, select the InsertPic macro we created above, and click [Run]. At this time, all pictures can be inserted.

A simple operation to insert n multiple pictures in one second in PPT

The above is the detailed content of A simple operation to insert n multiple pictures in one second in PPT. For more information, please follow other related articles on the PHP Chinese website!

source:zol.com.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template