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.
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

É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
Pictures have the type StdPicture

Dim pic As StdPicture

Set pic = LoadPicture(...
All Courses

From novice to tech pro — start learning today.