Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Communications > email a spreadsheet as attachment to a specific recipiant


Reply
 
Thread Tools Display Modes
  #1  
Old 05-08-2003, 09:59 AM
Chrissy Chrissy is offline
Freshman
 
Join Date: May 2003
Posts: 25
Default email a spreadsheet as attachment to a specific recipiant


Does anyone know the code to email an Excel spreadsheet to a specific recipient as an attachment? I cannot use the mapi as its not licenced on my system.

I have so far recorded a macro, but all it does is open outlook with the attachment, it will not let me record the recipient name, any ideas?

Ideally I would like it to do this and send automatically too.
Reply With Quote
  #2  
Old 05-08-2003, 10:26 PM
wbeetge wbeetge is offline
Regular
 
Join Date: Sep 2002
Location: New Zealand
Posts: 65
Default

If you say that MAPI is not registered on your machine, do yo have Oultook installed on your machine ?

Graham
Reply With Quote
  #3  
Old 05-08-2003, 11:34 PM
MindGenius MindGenius is offline
Banned
 
Join Date: Sep 2003
Location: London, United Kingdom
Posts: 392
Default

Do you want to email the actual spreadsheet in Outlook using a macro, or within the program (e.g. create a program that emails it without using Outlook)?
Reply With Quote
  #4  
Old 05-09-2003, 09:56 AM
Chrissy Chrissy is offline
Freshman
 
Join Date: May 2003
Posts: 25
Default

I do have outlook on my machine, but for some reason am not able to use the mapi control, it tells me I do not have a licence.
I have now got my code to email in a round about way, but it works!

Thanks guys for all your help....much appreciated!
Reply With Quote
  #5  
Old 05-09-2003, 09:59 AM
Chrissy Chrissy is offline
Freshman
 
Join Date: May 2003
Posts: 25
Default

I have done it now using a macro, still have some minor problems with it but can hopefully resolve those.

Many thanks for your help!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Add Attachment Outlook Express willmartell Word, PowerPoint, Outlook, and Other Office Products 0 04-04-2003 09:31 AM
Email Attachment kddad Word, PowerPoint, Outlook, and Other Office Products 1 01-04-2003 12:46 AM
Unable to convert an email attachment to a MailItem dada Word, PowerPoint, Outlook, and Other Office Products 0 09-30-2002 03:09 PM
Email Attachment jomamameister Communications 2 12-25-2001 12:21 PM
How do you send an email with an attachment in VB stevesumner General 2 01-22-2001 06:02 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->