Programatically changing picture in UserForm - VBA - Mac OSX

D

dirk

I am writing a Excel VBA application with one version that is to ru
under Windows (Excel 2000) and another version that is to run under Ma
OSX (Excel X).

I need to programatilly load a picture in an image-control of
userform.
In the windows version, I have no problem with the assignment

<control>.picture = LoadPicture(<filename>)


According to the documentation, the same should work for the Ma
version. .... It doesn't.

Does anybody know how to do this for Excel X ?

Thanks

Dir
 
S

Saide

I am not sure, but once I tried the follwing
<control>.picture=<filename
And it did work

Saide

----- dirk > wrote: ----

I am writing a Excel VBA application with one version that is to ru
under Windows (Excel 2000) and another version that is to run under Ma
OSX (Excel X)

I need to programatilly load a picture in an image-control of
userform
In the windows version, I have no problem with the assignmen

<control>.picture = LoadPicture(<filename>


According to the documentation, the same should work for the Ma
version. .... It doesn't

Does anybody know how to do this for Excel X

Thank

Dir
 
Top