Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default E-mail from VBA not working anymore

Now everytime i try to send an e-mail from Excel i get the followin
error message:
Compile Error:
user-defined type not defined

and then it highlights:
olApp As Outlook.Application

i have several other workbooks that this works on, any idea why i
wouldn't work today

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default E-mail from VBA not working anymore

Hi
have you set a reference to the Outlook ob ject library?

--
Regards
Frank Kabel
Frankfurt, Germany


Now everytime i try to send an e-mail from Excel i get the following
error message:
Compile Error:
user-defined type not defined

and then it highlights:
olApp As Outlook.Application

i have several other workbooks that this works on, any idea why it
wouldn't work today?


---
Message posted from http://www.ExcelForum.com/

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 208
Default E-mail from VBA not working anymore

Hi
Check that you have a reference to the OutLook Library. In the VB
Editor go to Tools, References and look for OutLook. If it is not
clicked, OutLook objects are not recognised, and assumed to then be a
user defined type.
regards
Paul
ForSale wrote in message ...
Now everytime i try to send an e-mail from Excel i get the following
error message:
Compile Error:
user-defined type not defined

and then it highlights:
olApp As Outlook.Application

i have several other workbooks that this works on, any idea why it
wouldn't work today?


---
Message posted from http://www.ExcelForum.com/

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default E-mail from VBA not working anymore

yes, i have the reference. here's what's throwing me for a loop.
i have a workbook with that code that works. i opened it, copied th
code word for word and put it in a new workbook. i ran the origina
and it works, but doesn't work on the second workbook. what the world

--
Message posted from http://www.ExcelForum.com

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 599
Default E-mail from VBA not working anymore

ForSale

The reference doesn't copy over just because you copy the code. The new
workbook doesn't have the reference set. If you would like to copy the code
to different workbooks, consider using late binding.

http://www.dicks-clicks.com/excel/olBinding.htm

--
Dick Kusleika
MVP - Excel
Excel Blog - Daily Dose of Excel
www.dicks-blog.com

"ForSale " wrote in message
...
yes, i have the reference. here's what's throwing me for a loop.
i have a workbook with that code that works. i opened it, copied the
code word for word and put it in a new workbook. i ran the original
and it works, but doesn't work on the second workbook. what the world?


---
Message posted from http://www.ExcelForum.com/



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
AddIn Analysis Pak not working anymore rexie3 Excel Worksheet Functions 2 September 6th 07 11:36 PM
CTRL+SPACEBAR not working anymore Henk Excel Discussion (Misc queries) 0 October 6th 06 01:56 AM
VLOOKUP not working anymore Phil Excel Worksheet Functions 6 April 27th 06 07:40 PM
unselecting not working anymore? Joe Magiera Excel Discussion (Misc queries) 1 September 1st 05 03:35 AM
it's not working anymore, please help! erin Excel Programming 4 February 14th 04 04:25 AM


All times are GMT +1. The time now is 03:46 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"