image in a variable

Is there a way that I can assign an image to a variable.I've tryied a couple of things but it always come up with a variable as long.
goloapAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Éric MoreauConnect With a Mentor Senior .Net ConsultantCommented:
A picture is a complex object (not just a value like a number or a date or a ...). Then you have to use the SET statement.

For your problem, use this:

Dim x As Variant

    Set x = Image1.Picture
   
    Set Image2.Picture = x
0
 
Erick37Commented:
Pictures have the type StdPicture

Dim pic As StdPicture

Set pic = LoadPicture(...
0
All Courses

From novice to tech pro — start learning today.