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

Referencing embedded Excel data in an Outlook email



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 1st 07, 11:16 PM posted to microsoft.public.outlook.program_vba
Allison Wonderland
external usenet poster
 
Posts: 5
Default Referencing embedded Excel data in an Outlook email

I created an Excel form with the MailEnvelope option that is posted on our
department intranet site. Users fill out the form and it is preprogrammed to
go to a specific email box. When the recipient looks at it, it looks like a
regular Outlook email with the contents of the spreadsheet embedded in the
body of the email. Previously I was using a customized Outlook email for
this purpose and I had developed an Access macro to read the data directly
from the custom fields of a selected email and import it into the database to
save on data entry. However, with the new form, I can't figure out how to
reference the data in the email so that I can have a VBA macro read it and
automatically import it into Access. Any idea on how to refer to specific
cells in the email?

David Allison
Ads
  #2  
Old August 2nd 07, 05:58 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Referencing embedded Excel data in an Outlook email



Not sure, but I suppose it's an attachment that you can save as a file and
then open as a Excel.Workbook.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Organize eMails:
http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6

Am Wed, 1 Aug 2007 15:16:03 -0700 schrieb Allison Wonderland:

I created an Excel form with the MailEnvelope option that is posted on our
department intranet site. Users fill out the form and it is preprogrammed

to
go to a specific email box. When the recipient looks at it, it looks like

a
regular Outlook email with the contents of the spreadsheet embedded in the
body of the email. Previously I was using a customized Outlook email for
this purpose and I had developed an Access macro to read the data directly
from the custom fields of a selected email and import it into the database

to
save on data entry. However, with the new form, I can't figure out how to
reference the data in the email so that I can have a VBA macro read it and
automatically import it into Access. Any idea on how to refer to specific
cells in the email?

David Allison

  #3  
Old August 2nd 07, 06:10 AM posted to microsoft.public.outlook.program_vba
Allison Wonderland
external usenet poster
 
Posts: 5
Default Referencing embedded Excel data in an Outlook email

I had thought that might work when I first promised I could do this. I know
how to reference an attachment and thought I could get at individual fields
from there. But the problem is it doesn't come as an attachment. At least
there's no paper clip icon so I'm assuming there's no attachment. Rather it
just seems to be part of the body of the email. That's a good thing in the
sense that all the data and formatting is retained whether you forward or
reply, but it seems to be a bad thing if you want to reference what were
specific fields in the original Excel document with VBA in Outlook.

David Allison

"Michael Bauer [MVP - Outlook]" wrote:



Not sure, but I suppose it's an attachment that you can save as a file and
then open as a Excel.Workbook.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Organize eMails:
http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6

Am Wed, 1 Aug 2007 15:16:03 -0700 schrieb Allison Wonderland:

I created an Excel form with the MailEnvelope option that is posted on our
department intranet site. Users fill out the form and it is preprogrammed

to
go to a specific email box. When the recipient looks at it, it looks like

a
regular Outlook email with the contents of the spreadsheet embedded in the
body of the email. Previously I was using a customized Outlook email for
this purpose and I had developed an Access macro to read the data directly
from the custom fields of a selected email and import it into the database

to
save on data entry. However, with the new form, I can't figure out how to
reference the data in the email so that I can have a VBA macro read it and
automatically import it into Access. Any idea on how to refer to specific
cells in the email?

David Allison


  #4  
Old August 2nd 07, 01:40 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Referencing embedded Excel data in an Outlook email

The MailEnvelope approach creates an HTML-format message, so processing the incoming data would be a matter of parshing the HTML table. Possible approaches will depend on your Outlook version, which you forgot to mention.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Allison Wonderland" wrote in message ...
I created an Excel form with the MailEnvelope option that is posted on our
department intranet site. Users fill out the form and it is preprogrammed to
go to a specific email box. When the recipient looks at it, it looks like a
regular Outlook email with the contents of the spreadsheet embedded in the
body of the email. Previously I was using a customized Outlook email for
this purpose and I had developed an Access macro to read the data directly
from the custom fields of a selected email and import it into the database to
save on data entry. However, with the new form, I can't figure out how to
reference the data in the email so that I can have a VBA macro read it and
automatically import it into Access. Any idea on how to refer to specific
cells in the email?

David Allison

  #5  
Old August 2nd 07, 05:26 PM posted to microsoft.public.outlook.program_vba
Allison Wonderland
external usenet poster
 
Posts: 5
Default Referencing embedded Excel data in an Outlook email

I'm using Outlook 2003. I have to admit I'm not real familiar with HTML but
now that you point out that's what I'm dealing with, that does generally
answer my question.

David Allison

"Sue Mosher [MVP-Outlook]" wrote:

The MailEnvelope approach creates an HTML-format message, so processing the incoming data would be a matter of parshing the HTML table. Possible approaches will depend on your Outlook version, which you forgot to mention.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Allison Wonderland" wrote in message ...
I created an Excel form with the MailEnvelope option that is posted on our
department intranet site. Users fill out the form and it is preprogrammed to
go to a specific email box. When the recipient looks at it, it looks like a
regular Outlook email with the contents of the spreadsheet embedded in the
body of the email. Previously I was using a customized Outlook email for
this purpose and I had developed an Access macro to read the data directly
from the custom fields of a selected email and import it into the database to
save on data entry. However, with the new form, I can't figure out how to
reference the data in the email so that I can have a VBA macro read it and
automatically import it into Access. Any idea on how to refer to specific
cells in the email?

David Allison


 




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
Referencing Excel cell from Outlook VBA expect_ed Outlook and VBA 6 March 28th 07 01:11 AM
Automatically trust embedded Excel worksheet in form? NW_DE Outlook - Using Forms 0 March 28th 07 12:12 AM
email merge using data from Excel Darrell Outlook - Calandaring 1 September 18th 06 02:16 AM
Email editor closes when forwarding Excel-embedded email Outlook - General Queries 0 March 18th 06 02:01 PM
Email editor closes when forwarding Excel-embedded email Outlook - Installation 0 March 18th 06 02:01 PM


All times are GMT +1. The time now is 11:49 AM.


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.