Sep 23 2022
[ Cache Error ]
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
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
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
|Copyright© 1989-2020, Molsoft,LLC - All Rights Reserved.|
This document contains proprietary and confidential information of
The content of this document may not be disclosed to third parties, copied or duplicated in any form,
in whole or in part, without the prior written permission from Molsoft, LLC.