A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

picture export



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 8th 06, 02:33 AM posted to microsoft.public.outlook.program_vba
Tomkat743
external usenet poster
 
Posts: 1
Default picture export

I would like to utilize a picture phone so my technicians can take photos, of
their completed work, and send them via e-mail back to my local office.
Because of the large number of techs and the size of the pics. I would write
a rule for each or create their own e-mail address on our servers so each one
has their own folder to save to. I would than write a macro to delete all
pics at the end of the day or every couple of days depending on storage
space. But what I can't figure out is how to automate the process of pulling
the .jpg file out of the e-mail and sending it to an Excel file with the
ability to open the pic in Excel using some sort of object handler or
another application link.
Ads
  #2  
Old January 9th 06, 07:55 AM posted to microsoft.public.outlook.program_vba
Michael Bauer
external usenet poster
 
Posts: 435
Default picture export

Am Sat, 7 Jan 2006 17:33:02 -0800 schrieb Tomkat743:

First you need to save the the attachment as a file (call its SaveAsFile
method). Excel isnīt able to open a jpg directly but you can add it as a
Shape, e.g. (assuming that ws has a ref on a Worksheet already):

Sub test()
Dim ws As Worksheet
Dim sh As Shapes
Dim picsh As Shape
Dim file As String

file = "D:\CIMG0787.JPG"

Set sh = ws.Shapes
Set picsh = sh.AddPicture(file, msoFalse, msoTrue, 1, 1, 100, 100)

End Sub


--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook



I would like to utilize a picture phone so my technicians can take photos,

of
their completed work, and send them via e-mail back to my local office.
Because of the large number of techs and the size of the pics. I would

write
a rule for each or create their own e-mail address on our servers so each

one
has their own folder to save to. I would than write a macro to delete all
pics at the end of the day or every couple of days depending on storage
space. But what I can't figure out is how to automate the process of

pulling
the .jpg file out of the e-mail and sending it to an Excel file with the
ability to open the pic in Excel using some sort of object handler or
another application link.

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
e-mail picture downloads hargold Outlook - General Queries 1 March 3rd 06 07:29 PM
Can't insert picture into email cavuu Outlook - General Queries 1 February 20th 06 12:30 AM
Can't insert picture into email cavuu Outlook - General Queries 0 February 16th 06 02:48 AM
Animated Picture NoushadTK Outlook - General Queries 1 January 24th 06 01:57 PM
Include PictureFormatHTML send picture will not remain checked JimM Outlook Express 3 January 9th 06 03:12 AM


All times are GMT +1. The time now is 04:43 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright Đ2004-2025 Outlook Banter.
The comments are property of their posters.