Hi,
I would like to test with "If" if a Image Control in userform is empty or not. How I can do that?
I tried:
If IsEmpty (Image1.Picture) Then
'code
End If
But that code is incorrect.
Thanks for advance.
Hi,
I would like to test with "If" if a Image Control in userform is empty or not. How I can do that?
I tried:
If IsEmpty (Image1.Picture) Then
'code
End If
But that code is incorrect.
Thanks for advance.
Re: Image Control - userform
Try this
If UserForm1.Image1.Picture = vbNull Then
'Do action
UserForm1.Image1.Picture = LoadPicture(Path)
End if
Re: Image Control - userform
It doesn't work.
Re: Image Control - userform
Fantastic. It is working. Thanks very much.
Re: Image Control - userform
Say thanks to Forum.
Re: Image Control - userform
Thanks to Forum.
Re: Image Control - userform
Raha
Please edit your posts by adding Code Tags
Re: Image Control - userform
Hi Sir,
I am little confused.
Could you please advise me what actually this "adding code Tags" mean's.
Sorry if i am not suppose to.
Regards,
Rahaman
Re: Image Control - userform
Hi Raha
To add code tags do as follows
[code]
your code here
[\code]
I had to use a backslash but it should be a forward slash.
Re: Image Control - userform
Raha, try reading the Forum Rules that you agreed to when you joined
Don’t have an account yet? Register yourself now and be a part of our community!