Prev
7.6 Advanced use of activeICM: Macros to direct visualisation changes
Next

[ Cache Error ]

Documentation kindly provided by Dr. Brian Marsden (SGC Oxford http://www.sgc.ox.ac.uk/people/brian/ )

It is possible to write simple VisualBasic scripts to avoid having to use the right-click menu approach to changing activeICM control slides within the control itself. This allows one to place buttons outside of the activeICM control, but in the same PowerPoint slide, which controls the control's behaviour. Below are a couple of useful examples of this approach.

Creating a button to set the control's active slide:

Insert a button Office 2003

Insert a button Office 2007:


ActiveIcmCtl1.currentSlide = 2

Other code examples: Just copy and paste the example of interest inside the function for the button in the Visual Basic editor. Code that enables a button to cycle through the ICB files slides in order (including wrap-around)


currentSlide = ActiveIcmCtl1.currentSlide
numSlides = ActiveIcmCtl1.nofSlides
If currentSlide = numSlides - 1 Then
ActiveIcmCtl1.currentSlide = 0
Else
ActiveIcmCtl1.currentSlide = currentSlide + 1
End If

7.6.1 PowerPoint Cache Errors


PowerPoint caches some information about active controls. Sometimes after an ActiveICM upgrade you may get an error when trying to access some property or method: "Wrong number of arguments or invalid property assignment" or something similar.

In this case you need to close PowerPoint and remove all files from the location below:

C:\Documents and Settings\seva\Local Settings\Temp\PPT11.0


Prev
Properties
Home
Up
Next
Background Images