Avatar billede nordana Nybegynder
08. januar 2004 - 13:46 Der er 5 kommentarer

Indsætte object from file

I Outlook 2002 kan man sætte et object fra en fil ind i en mail, og det vil jeg gerne gøre i Visual Basic. Har prøvet med f.eks. attachments.add men det giver mig kun filen og ikke selve objektet i filen.
Jeg kan gøre det i Word 2002 med Selection.InlineShapes.AddPicture, men det vil Outlook ikke bruge.
Avatar billede terry Ekspert
09. januar 2004 - 11:39 #1
nordana>What sdo you mean by object? Isnt an object just another file?
Avatar billede nordana Nybegynder
09. januar 2004 - 11:54 #2
Yes, an object is just a file - I mean that I have a picture in a flag.bmp file that I want to insert in a Mail. I want to show the picture in the mail, not just as an attachment. I can do it manually using the menu: Insert, Object, Selcet "Create from file" and then browse to the file. This works fine but I need the same picture many times, so it would be easier to use a macro/visual basic to do it.
Avatar billede terry Ekspert
10. januar 2004 - 14:51 #3
nordana>I've had a play around with this and dont seem to be able to get it to work.
I think your on the right track using Selection.InlineShapes.AddPicture but Outlooks object model isnt very logical, so its not easy to find the correct syntax!
If you do find a solution then can you show it here as I'm sure others can use it too, thanks.
Avatar billede nordana Nybegynder
12. januar 2004 - 23:02 #4
Terry> Thanks, Hope I´ll find the way to do it.
Avatar billede terry Ekspert
13. januar 2004 - 17:22 #5
Hope you do too, can you drop a comment if you do? Thanks
Terry
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Kurser inden for grundlæggende programmering

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester