ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to get image's path? (https://www.excelbanter.com/excel-programming/291133-how-get-images-path.html)

eFrank

How to get image's path?
 
H

If I write the following code
image.object.picture = _LoadPicture("c:\photo\abc.gif"

Can I get image's path "c:\photo\abc.gif" from image object? If yes, how to get

Thanks
eFran



Ulrik Gustafsson

How to get image's path?
 
Hi,

No, unfortunately it is not possible. As soon as you have assigned the
picture property of an image control to an image path
the image is converted to an embedded picture object.

The only thing you can do of course is to reassign a new image path with
LoadPicture.

Hope this helps

/Ulrik



"eFrank" wrote in message
...
Hi

If I write the following code:
image.object.picture = _LoadPicture("c:\photo\abc.gif")

Can I get image's path "c:\photo\abc.gif" from image object? If yes, how

to get?

Thanks.
eFrank





onedaywhen

How to get image's path?
 
Put the path in the Image control's Tage property for later use?

--

eFrank wrote in message ...
Hi

If I write the following code:
image.object.picture = _LoadPicture("c:\photo\abc.gif")

Can I get image's path "c:\photo\abc.gif" from image object? If yes, how to get?

Thanks.
eFrank



All times are GMT +1. The time now is 06:45 AM.

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