L
lance-news
Anyone have any ideas how I can find the maximum value of the range
B3:O3 in an embedded Excel sheet within PPT? I don't want to create
a cell formula is possible. I simply wish to save the max value within
the macro. Are there any commands that will allow me to do this?
Sub test()
Dim SlideObject As Slide
Dim ShapeObject As Shape
For Each SlideObject In Application.ActivePresentation.Slides
For Each ShapeObject In SlideObject.Shapes
If ShapeObject.Type = 7 Then
' I know this won't work, it is simply an example of what I am
' trying to accomplish
MaxVal = Max(B3:O3)
End If
Next ShapeObject
Next SlideObject
End Sub
B3:O3 in an embedded Excel sheet within PPT? I don't want to create
a cell formula is possible. I simply wish to save the max value within
the macro. Are there any commands that will allow me to do this?
Sub test()
Dim SlideObject As Slide
Dim ShapeObject As Shape
For Each SlideObject In Application.ActivePresentation.Slides
For Each ShapeObject In SlideObject.Shapes
If ShapeObject.Type = 7 Then
' I know this won't work, it is simply an example of what I am
' trying to accomplish
MaxVal = Max(B3:O3)
End If
Next ShapeObject
Next SlideObject
End Sub