John Wilson - thank you very much - my code now works! I am a Teacher and have only been coding with VBA PowerPoint for two weeks so really appreciate your help. This also solved my last issue concerning a program I have been making over this time period and it will now be able to fully animate it as I intended. (I think it looks really good.)

I had plenty of questions to ask you, but I then read your comment "Don't ask why I don't know!" so I suspect that answers one of my questions! However, is it a general rule/recommendation that you only declare variables inside the Sub for object references?

Otherwise, are there any good sources of information/books on coding VBA PowerPoint? I have not been able to find many. Information on topics like using the animation timeline and differences between using commands in show and normal modes would be appreciated.

Also, is there a program which will convert the powerpoint program (with the VBA) into an online program i.e. HTML5 that you know of and recommend?

Thank you again and for any comments!