ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Programatically changing picture in UserForm - VBA - Mac OSX (https://www.excelbanter.com/excel-programming/298284-programatically-changing-picture-userform-vba-mac-osx.html)

dirk

Programatically changing picture in UserForm - VBA - Mac OSX
 
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

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


Saide

Programatically changing picture in UserForm - VBA - Mac OSX
 

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


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



dirk

Programatically changing picture in UserForm - VBA - Mac OSX
 
Hi Saide,

Thanks for your experience, but on my system it didn't work.

Dirk


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



All times are GMT +1. The time now is 01:39 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com