LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
gki gki is offline
external usenet poster
 
Posts: 1
Default Check image availability on userform

Hello all,

Is there anyone who knows how to check the availability of image in th
folder?

I need it on my userform, if there is no image belonging to the cod
that it is requested then it should give me the message of "No imag
available".

But when I change the code, the image should be visible.

Please have a look at my code below,

With Image1
.Picture=LoadPicture(PathName)
If Image1.Picture=vbNull Then Image1.Visible=False An
lblnoimage.visible=True

End With


Just for your imformation; lblnoimage="No Image available"
At first, the code numbers of images were Numeric, then I add a lette
at the end of each code, like before 45120 after 45120a.

I thought this would solve the problem. But I cannot make the
image go away once I entered the wrong code or the code which has n
image in the database...

Please help me out,




Thank yo

--
Message posted from http://www.ExcelForum.com

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy image of UserForm to a clipboard Gabor Excel Programming 3 July 14th 04 10:39 PM
How to check for availability activeX control Emile van Mierlo Excel Programming 2 May 5th 04 02:32 PM
UserForm as a Jpeg Image John[_78_] Excel Programming 7 February 19th 04 11:46 AM
Bmp vs Gif in Userform image controls Sandy-V[_2_] Excel Programming 0 January 14th 04 01:46 PM
Userform Image help Pete[_13_] Excel Programming 1 November 10th 03 10:26 PM


All times are GMT +1. The time now is 06:40 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"