At design time;
Go to the properties windows of the command button, look for Picture property and a dialog will ask for the location of your image.
During runtime
Just try the code below;
Code:
Private Sub UserForm_Initialize()
With Me.CommandButton1
.Caption = ""
.AutoSize = True
.Picture = LoadPicture("e:\logo.gif")
.PicturePosition = fmPicturePositionCenter
End With
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.