nightcrawler23
Well-known Member
- Joined
- Sep 24, 2009
- Messages
- 721
HI all, I use the below code to load a gif on my userform using a web browser control. I have the control of the size 30x30. even if i choose a gif of size 25x25 it doesnot center on the control.
Seems like there is some extra padding or space added to the gif before loading.
Any idea how to remove this.
Seems like there is some extra padding or space added to the gif before loading.
Any idea how to remove this.
Code:
Private Sub UserForm_Initialize()
With wb1
.Navigate (ThisWorkbook.Path & "/loading8.gif")
End With
End Sub
Private Sub wb1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
Me.wb1.Document.Body.Scroll = "no"
End Sub