Re: VBA Timer

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



In article <E9FE2A6E-CAB6-4954-9FBE-9C6D6D89C482@xxxxxxxxxxxxx>, Carbuthn wrote:
John, depending on the version of PowerPoint (i.e. 2007) I have been having
problems getting Shyam code to work, I get an error message from the public
declaration of the sleep lib. used in the TMR sub.

Ah. That means that something's wrong.

Hint: Always quote the exact text of the error message; that gives us something to
grab hold of. The fact that there was an error message doesn't tell us much.

But now that I've lengthened your leg, you may want to try re-copying the
declaration from Shyam's page. Here 'tis to save you the trouble of looking it up:

Public Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)

There's nothing wrong with it ... it works fine here.



The second part works but
may need a screen refresh after a time delay.

Thank,
Chuck

"John Wilson" wrote:

Maybe use the settimer API. Shyam explains it here
http://skp.mvps.org/ppt00021.htm

--
Amazing PPT Hints, Tips and Tutorials

http://www.PPTAlchemy.co.uk
http://www.technologytrish.co.uk
email john AT technologytrish.co.uk


"Jason Lopez" wrote:

I need to add a timer on a single slide. I know that I could make a timer
out of multiple slides. But that is a waste of memory space (IMO) for a
presentation. I saw that someone created a presentation with a single slide
timer using VBA. But, can someone point me in the direction of where I can
get an understanding of how they did this and I can write my own macro code
for it?

Jason Lopez





-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================


.



Relevant Pages

  • RE: using strict
    ... RESPONSE FROM DEREK: I did notice this after you pointed it out, ... the error message should point you to the line where ... There is no declaration of the $line variable. ... so use strict disallows them knowing that if you really ...
    (perl.beginners)
  • Re: SOCKET problem
    ... reason for the error message is that you have a statement preceding ... the declaration; a compiler that implements C90 or C95 rather than C99 ...
    (comp.lang.c)
  • Re: Shadowing a parameter
    ... > The real question, though, is why the heck can't the error message be ... If some thing can be parsed as a declaration it is. ... The error you got was nothing to do with not knowing how to invoke ...
    (comp.lang.cpp)
  • Re: Stored procedure syntax problem
    ... Another problem you will be having once that is fixed is the declaration of ... >I would be very grateful if someone could help me with a stored procedure ... > This is the syntax i have tried, but I get the error message "Invalid ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Iostream
    ... > it seems when i try to compile this simple code I get an error message i ... then your compiler is installed ... int main ... by putting the 'using' directive or declaration inside the ...
    (comp.lang.cpp)