PDA

View Full Version : Use animated gif in userforms



dansam
02-09-2007, 09:53 AM
Hi ,
Is there any way to use animated gif pictures in a userform ? :think:

Simon Lloyd
02-09-2007, 10:33 AM
Heres an example i picked up a little while ago its for displaying gifs on a userform from a website:


Private Sub UserForm_Activate()
Dim sPath As String, sFile As String
sPath = "http://www.MyGifs.Com/images/"
sFile = "My.gif"
WebBrowser1.Navigate sPath & sFile
Me.Caption = sFile
End Sub

See if you can use this!

Regards,
Simon

lucas
02-09-2007, 11:24 AM
From the KB:
Animation on a userform (http://vbaexpress.com/kb/getarticle.php?kb_id=19)

SherryO
05-24-2007, 10:04 AM
I can't get the KB to work. Any suggestions? Thanks

lucas
05-24-2007, 10:40 AM
Hi Sherry,
Hard to see if from here.....post it please.
Did the attachment from the kb entry work?

SherryO
05-24-2007, 10:50 AM
Yes the KB attachment worked and I know why it's not animating. I don't have the .gif file from 1-8. How / Where do I get those? Please excuse my ignorance...
Thanks

lucas
05-24-2007, 11:00 AM
You will need gif animation software such as Paint Shop Pro. It will break it up into individual pictures.