프레젠테이션을 만들고 멀티미디어 개체 및 텍스트를 사용한 특수 효과와 같은 그래픽 효과를 추가하는 도구를 제공하는 Microsoft 프레젠테이션 그래픽 제품군입니다.
You should create a sub routine without any parameter which calls your macro 'MyMacro' with parameters.
If you want to call 'MyMAcro' without parameters, add 'Optional' before each parameter.
Sub RunMyMacro()
MyMacro "Name", "Type"
End Sub
Sub MyMacro(Optional ModelName As String, Optional ProductType As String)
Dim i As Long
With ActivePresentation.Slides(5).Shapes
For i = 1 To .Count
If .Item(i).HasTable Then
.Item(i).Table.Cell(2, 3).Shape.TextFrame.TextRange.Text = ModelName
.Item(i).Table.Cell(3, 3).Shape.TextFrame.TextRange.Text = ProductType
End If
Next
End With
End Sub
If you want specify the two parameters at runtime, you can use InputBox to get user's parameter.