can anyone help me out in, macro to fix missing:microsoft outlook 14.0 object library
can anyone help me out in, macro to fix missing:microsoft outlook 14.0 object library
Hi
if you are not picking this up in your references I don't think a macro is going to help you.
on my computer this file is found at
C:\Program Files (x86)\Microsoft Office\Office14\MSOUTL.OLB
but your paths could well be different
if so, search for the file MSOUTL.OLB and then add this in to your references library
Even i have the same location C:\Program Files (x86)\Microsoft Office\Office12
Cross-posted at http://www.mrexcel.com/forum/excel-q...t-library.html
Entia non sunt multiplicanda sine necessitate
good - do you have the MSOUTL.OLB file there? If so, in the VBA area select tools > references, click 'browse', and negotiate to that directory, click to select this file and your macros should work ok
... sorry shg, missed your post
Last edited by NickyC; 06-20-2013 at 02:36 AM. Reason: add apology!
Hello sujithy007,
Office 2010 contains the Outlook 14.0 library. If you are using Office 2007, which it appears you are, the Outlook library version is 12.0. You can only have one version of Outlook loaded on your computer and the newest version will replace the old. Unless you upgrade to Office 2010, you will not have Outlook 14.0 on your computer or access to it.
Sincerely,
Leith Ross
Remember To Do the Following....
1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.2. Thank those who have helped you by clicking the Starbelow the post.
3. Please mark your post [SOLVED] if it has been answered satisfactorily.
Old Scottish Proverb...
Luathaid gu deanamh maille! (Rushing causes delays!)
I am still having issues even after doing the late binding. Can someone help me ? I am not able to find the "Microsoft Outlook" in reference in VBA
Help is really appreciated.![]()
Sub datesexcelvba() Dim myApp As Object Dim mymail As Object Dim mydate1 As Date Dim mydate2 As Long Dim datetoday1 As Date Dim datetoday2 As Long Dim x As Long lastrow = Sheets("RAJESH JAIN").Cells(Rows.Count, 6).End(xlUp).Row For x = 6 To lastrow mydate1 = Cells(x, 11).Value mydate2 = mydate1 Cells(x, 18).Value = mydate2 datetoday1 = Date datetoday2 = datetoday1 Cells(x, 19).Value = datetoday2 If mydate2 - datetoday2 = 7 Then Set myApp = CreateObject("Outlook.Application") Set mymail = myApp.CreateItem(olMailItem) mymail.To = Cells(x, 15).Value With mymail .Subject = "PREMIUM PAYMENT REMINDER" .Body = "Your Insurance Policy Premium is due. " .Display '.Send End With Cells(x, 16) = "Yes" Cells(x, 16).Interior.ColorIndex = 3 Cells(x, 16).Font.ColorIndex = 2 Cells(x, 16).Font.Bold = True Cells(x, 17).Value = mydate2 - datetoday2 End If Next Set myApp = Nothing Set mymail = Nothing End Sub
Administrative Note:
Welcome to the forum.
We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.
Please see Forum Rule #4 about hijacking and start a new thread for your query.
If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks