Hi, all,
I am working at shipbuilding company (South Korea).
I would like to make a CFD report (ppt file) by macro using some images as follows.
Sub InsertImage()
ActiveWindow.Selection.SlideRange.Shapes.AddPicture( _
FileName:="C:\CFD_REPORT_MACRO\wave_profile.jpg", _
LinkToFile:=msoFalse, _
SaveWithDocument:=msoTrue, Left:=15, Top:=88, _
Width:=690, Height:=190).Select
ActiveWindow.Selection.SlideRange.Shapes.AddPicture( _
FileName:="C:\CFD_REPORT_MACRO\wall_wave_view.jpg", _
LinkToFile:=msoFalse, _
SaveWithDocument:=msoTrue, Left:=60, Top:=95, _
Width:=600, Height:=400).Select
End Sub
In this case, the images "wake.jpg & wall_wave_view.jpg" are posted on active slide(one slide) at the same time when click macro "InsertImage".
I want that the image "wake.jpg" is posted on slide.#3 and the image "wall_wave_view.jpg" is posted on slide.#4 respectively.
So, I would like to modify below macro.
ActiveWindow.Selection.SlideRange.Shapes.AddPicture( _
In addition, the CFD report (ppt file) will be used our team members.
The image files are generated by Tecplot macro and saved in the local
folder at our team member's PC and then the ppt file will be copied
at the same folder which be saved the image files.
So, I would like to modify below macro.
FileName:="C:\CFD_REPORT_MACRO\wall_wave_view.jpg", _
The image file path is not static and to be changed to the ppt file path because many people will be used the ppt file.
I need your help now. Happy Christmas!
I am working at shipbuilding company (South Korea).
I would like to make a CFD report (ppt file) by macro using some images as follows.
Sub InsertImage()
ActiveWindow.Selection.SlideRange.Shapes.AddPicture( _
FileName:="C:\CFD_REPORT_MACRO\wave_profile.jpg", _
LinkToFile:=msoFalse, _
SaveWithDocument:=msoTrue, Left:=15, Top:=88, _
Width:=690, Height:=190).Select
ActiveWindow.Selection.SlideRange.Shapes.AddPicture( _
FileName:="C:\CFD_REPORT_MACRO\wall_wave_view.jpg", _
LinkToFile:=msoFalse, _
SaveWithDocument:=msoTrue, Left:=60, Top:=95, _
Width:=600, Height:=400).Select
End Sub
In this case, the images "wake.jpg & wall_wave_view.jpg" are posted on active slide(one slide) at the same time when click macro "InsertImage".
I want that the image "wake.jpg" is posted on slide.#3 and the image "wall_wave_view.jpg" is posted on slide.#4 respectively.
So, I would like to modify below macro.
ActiveWindow.Selection.SlideRange.Shapes.AddPicture( _
In addition, the CFD report (ppt file) will be used our team members.
The image files are generated by Tecplot macro and saved in the local
folder at our team member's PC and then the ppt file will be copied
at the same folder which be saved the image files.
So, I would like to modify below macro.
FileName:="C:\CFD_REPORT_MACRO\wall_wave_view.jpg", _
The image file path is not static and to be changed to the ppt file path because many people will be used the ppt file.
I need your help now. Happy Christmas!
Last edited: