ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Insert a metafile with VBA (https://www.excelbanter.com/excel-programming/314365-insert-metafile-vba.html)

Gernot Frisch

Insert a metafile with VBA
 
Hi,

I have a dll (my code) that creates a HMETAFILE / HENHMETAFILE.
Whatever. I want to write a function in VBA, that displays the
contents of a cell graphically with this dll. How do I insert/update a
metafile in my excel sheet?

Thank you very much,

--
-Gernot
int main(int argc, char** argv) {printf
("%silto%c%cf%cgl%ssic%ccom%c", "ma", 58, 'g', 64, "ba", 46, 10);}

________________________________________
Looking for a good game? Do it yourself!
GLBasic - you can do
www.GLBasic.com



Tom Ogilvy

Insert a metafile with VBA
 
Turn on the macro recorder and do

Insert=Picture=From File

--
Regards,
Tom Ogilvy

"Gernot Frisch" wrote in message
...
Hi,

I have a dll (my code) that creates a HMETAFILE / HENHMETAFILE.
Whatever. I want to write a function in VBA, that displays the
contents of a cell graphically with this dll. How do I insert/update a
metafile in my excel sheet?

Thank you very much,

--
-Gernot
int main(int argc, char** argv) {printf
("%silto%c%cf%cgl%ssic%ccom%c", "ma", 58, 'g', 64, "ba", 46, 10);}

________________________________________
Looking for a good game? Do it yourself!
GLBasic - you can do
www.GLBasic.com






All times are GMT +1. The time now is 09:47 AM.

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