#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default email from access

I want to email from access and there are many information on this .

I try using
http://www.datastrat.com/Code/OutlookEmail.txt
from Arvin Meyer, MCP, MVP
Microsoft Access


I copied his command to a the expression of a command button on click
and it highd the line


and it come up with an errore message

user-defined type not defined

and highlight the line
Dim objOutlook As Outlook.Application


I am not knowlwege of prgograming
can someone help me and tell my why?




--
klam
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default email from access

You have to add reference of Microsoft Outlook in VB editor/Tools/References.

"Klam" wrote:

I want to email from access and there are many information on this .

I try using
http://www.datastrat.com/Code/OutlookEmail.txt
from Arvin Meyer, MCP, MVP
Microsoft Access


I copied his command to a the expression of a command button on click
and it highd the line


and it come up with an errore message

user-defined type not defined

and highlight the line
Dim objOutlook As Outlook.Application


I am not knowlwege of prgograming
can someone help me and tell my why?




--
klam

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,123
Default email from access

You must set a reference to Outlook

Look on my site for examples(outlook object model) that use Late binding, no need to set a reference then
http://www.rondebruin.nl/sendmail.htm

If you want to use Early binding read the info below the macro

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Klam" wrote in message ...
I want to email from access and there are many information on this .

I try using
http://www.datastrat.com/Code/OutlookEmail.txt
from Arvin Meyer, MCP, MVP
Microsoft Access


I copied his command to a the expression of a command button on click
and it highd the line


and it come up with an errore message

user-defined type not defined

and highlight the line
Dim objOutlook As Outlook.Application


I am not knowlwege of prgograming
can someone help me and tell my why?




--
klam

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I access Outlook Express email address book using Excel Clarrie s4 Excel Discussion (Misc queries) 1 July 14th 07 03:35 AM
send wkbk as an email attachment with an email address copied from SueInAtl Excel Discussion (Misc queries) 0 May 21st 07 10:53 PM
can I copy a column of email addresses, paste into email address? Lizizfree New Users to Excel 4 July 20th 06 10:03 PM
Cannot previous post - email via access to excel template jwr Links and Linking in Excel 4 October 17th 05 09:33 PM
Import query from access to excel, link to template, email on jwr Links and Linking in Excel 11 October 15th 05 05:25 PM


All times are GMT +1. The time now is 05:37 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"