R
Rich
I have inserted several pictures into PowerPoint, all of which have
transparent backgrounds. I have also added several Check-boxes into the
presentation.
I was hoping that a user could, whilst in the slideshow viewer, click any
combination of the tickboxes and the relevant pictures would be either hidden
from view or displayed. Rather like a series of layers. Since they are all
transparent, you can see through all of them to the background.
The checkbox lniks through to some VBA code...but I cannot figure out what
code I should be putting in. Using the Macro recorder, the following was
suggested...but it didn't work. I could put an "If Checkbox = TRUE" around
it if required. Any ideas how I could make it work?
ActiveWindow.Selection.SlideRange.Shapes("Picture 7").Select
With ActiveWindow.Selection.ShapeRange
.Height = 0#
.Width = 0#
.PictureFormat.CropLeft = 113.38
.PictureFormat.CropRight = 113.38
.PictureFormat.CropTop = 28.34
.PictureFormat.CropBottom = 28.34
End With
transparent backgrounds. I have also added several Check-boxes into the
presentation.
I was hoping that a user could, whilst in the slideshow viewer, click any
combination of the tickboxes and the relevant pictures would be either hidden
from view or displayed. Rather like a series of layers. Since they are all
transparent, you can see through all of them to the background.
The checkbox lniks through to some VBA code...but I cannot figure out what
code I should be putting in. Using the Macro recorder, the following was
suggested...but it didn't work. I could put an "If Checkbox = TRUE" around
it if required. Any ideas how I could make it work?
ActiveWindow.Selection.SlideRange.Shapes("Picture 7").Select
With ActiveWindow.Selection.ShapeRange
.Height = 0#
.Width = 0#
.PictureFormat.CropLeft = 113.38
.PictureFormat.CropRight = 113.38
.PictureFormat.CropTop = 28.34
.PictureFormat.CropBottom = 28.34
End With