Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-09-2015, 05:46 AM
gerris gerris is offline PP Command Button wont run on another PC Windows 7 64bit PP Command Button wont run on another PC Office 2010 64bit
Novice
PP Command Button wont run on another PC
 
Join Date: Dec 2014
Posts: 5
gerris is on a distinguished road
Default PP Command Button wont run on another PC

Does anybody know why a PP Presentation with Counter Button will run on my PC but when I email it to somebody else - it wont run on theirs and they do have the same version of PP.



I tried the VB code as suggested in this forum

Dim Offset As Single
Dim CountNo As Long
Dim x As Single

Private Sub CommandButton1_Click()
Offset = ActivePresentation.PageSetup.SlideHeight + 10
CountNo = 0
' ADJUST THIS waitTime NUMBER WITH SECONDS DELAY BETWEEN COUNTER INCREMENTS
waitTime = 0.5
' ADJUST THIS maxCount NUMBER WITH MAXIMUM NUMBER COUNTER SHOULD REACH
maxCount = 5000
Do Until CountNo = maxCount + 1
ActivePresentation.SlideMaster.Shapes("Counter").T extFrame.TextRange.Text = CountNo
ActivePresentation.SlideMaster.Shapes("Counter").T op = ActivePresentation.SlideMaster.Shapes("Counter").T op + Offset
DoEvents
ActivePresentation.SlideMaster.Shapes("Counter").T op = ActivePresentation.SlideMaster.Shapes("Counter").T op - Offset
x = Timer
While Timer - x < waitTime
DoEvents
Wend
CountNo = CountNo + 92

If SlideShowWindows.Count = 0 Then
ActivePresentation.SlideMaster.Shapes("Counter").T extFrame.TextRange.Text = 1
ActivePresentation.SlideMaster.Shapes("Counter").T op = ActivePresentation.SlideMaster.Shapes("Counter").T op + Offset
DoEvents
ActivePresentation.SlideMaster.Shapes("Counter").T op = ActivePresentation.SlideMaster.Shapes("Counter").T op - Offset
Exit Do
End If

Loop
End Sub


It works perfectly on my PC. Any ideas ? Thanks
Reply With Quote
 

Tags
activex, counter, vb



Similar Threads
Thread Thread Starter Forum Replies Last Post
command button query smalc Word VBA 2 03-16-2015 08:26 PM
PP Command Button wont run on another PC Newbie Wants to Add Print Command Button! PapaTom PowerPoint 7 02-25-2013 06:12 PM
PP Command Button wont run on another PC Command Button to Print Labels Claytocb Excel Programming 1 02-01-2013 12:20 AM
PP Command Button wont run on another PC Command Button will not work when document is protected brockjensen Word 1 11-02-2012 06:59 PM
PP Command Button wont run on another PC Command Button cksm4 Word VBA 7 02-27-2011 08:47 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:38 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft