Results 1 to 8 of 8
  1. #1
    4 Star Lounger
    Join Date
    Sep 2002
    Location
    Stafford, Staffordshire, England
    Posts
    585
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Shape Line Colour (2003)

    <img src=/S/hello.gif border=0 alt=hello width=25 height=29>

    I have written a macro to insert a red transparent rectangle to the bottom right hand corner of Slide 1. So far so good. I want the line colour to alternate between red and blue each second ten times. I thought I had it worked out since I assumed I could use the Application.Wait method as in Excel but, as usual, my assumptions are ill-founded.
    Are there any PowerPointers out there who could powerpoint me to a solution?

    TIA
    <font color=blue><font face="Script MT Bold"><big>Rob</big></font face=script></font color=blue>

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Shape Line Colour (2003)

    I can't help you with your question - PowerPoint VBA is largely a mystery to me.

    But I would ask you to reconsider - a rapidly blinking object on screen will be annoying to many viewers, and it may be dangerous to some: it could cause an epileptic seizure.

  3. #3
    4 Star Lounger
    Join Date
    Sep 2002
    Location
    Stafford, Staffordshire, England
    Posts
    585
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Shape Line Colour (2003)

    Hi Hans

    Thanks for the reply. I didn't explain myself properly. I wanted the change to occur each second, or even every two seconds, for 10 occasions only, well below the danger frequency, I believe (another assumption), but I take your point.
    <font color=blue><font face="Script MT Bold"><big>Rob</big></font face=script></font color=blue>

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Shape Line Colour (2003)

    I hope that one of our PowerPoint experts will be able to help you.

  5. #5
    3 Star Lounger
    Join Date
    Feb 2007
    Location
    Durham, Durham, United Kingdom
    Posts
    286
    Thanks
    0
    Thanked 10 Times in 10 Posts

    Re: Shape Line Colour (2003)

    In PowerPoint you could call the sleep api

    You must declare it first (exactly like this)

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

    Then in your module use Sleep(1000) for 1 second delay. (value is in millisecs)

    Don't forget to have a DoEvents in the loop to refresh the screen

  6. #6
    5 Star Lounger
    Join Date
    Aug 2001
    Location
    Surrey, United Kingdom
    Posts
    1,001
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Shape Line Colour (2003)

    Hi

    Unless there is a specific reason you want to use code would it nor be easier to use animation effectes? I have attached an example where I have just superimposed red and blue transparent boxes over each other, the first one set to appear and the others set to animate 1 second after.

    HTH

    Cheers

    Steve
    Attached Files Attached Files
    Cheers

    Steve

    Asking the questions everbody wants the answers too but feels too stupid to ask themselves :-)

  7. #7
    3 Star Lounger
    Join Date
    Feb 2007
    Location
    Durham, Durham, United Kingdom
    Posts
    286
    Thanks
    0
    Thanked 10 Times in 10 Posts

    Re: Shape Line Colour (2003)

    Or if you don't want to use animations you could simply add a gif
    Attached Files Attached Files

  8. #8
    4 Star Lounger
    Join Date
    Sep 2002
    Location
    Stafford, Staffordshire, England
    Posts
    585
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Shape Line Colour (2003)

    Thanks John and Steve. More food for thought.

    Regards
    <font color=blue><font face="Script MT Bold"><big>Rob</big></font face=script></font color=blue>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •