sakthi santhanam
New Member
Hi,
I am working with the code sends the a mail to lotus notes. The code is working fine for me when I am working on wth my system... i am using win 7 and excel 2007... But, when i worked with the other system with the same configuration I got an error as "Can't find project or library" and i found the reference which was mentioning as Missing: ATPVBAEN.xlma...
	
	
	
		
in this at code first the error was thrown at
	
	
	
		
and after that I got the same error at
	
	
	
		
Please suggest me and aswell if I want to use the code in Excel 2003 what else I have to do? what are the reference that I need to check.
Regards,
sakthi
				
			I am working with the code sends the a mail to lotus notes. The code is working fine for me when I am working on wth my system... i am using win 7 and excel 2007... But, when i worked with the other system with the same configuration I got an error as "Can't find project or library" and i found the reference which was mentioning as Missing: ATPVBAEN.xlma...
		Code:
	
	Set lot = CreateObject("Lotus.NotesSession")
lpwd = UserForm5.TextBox2.Value
Call lot.Initialize(lpwd)
Set ndir = lot.GetDbDirectory("")
Set ndb = ndir.OpenMailDatabase
Set ndoc = ndb.CreateDocument
nto = "sam123@in.ars.com"
'nto = UserForm4.TextBox10.Value
attach1 = pth1 & "score.xls"
   
With ndoc
  Set natt = .CreateRichTextItem("Body")
  Call .ReplaceItemValue("Form", "Memo")
  Call .ReplaceItemValue("Copyto", nto)
  Call .ReplaceItemValue("Subject", "Ticket Quality Audit ---" & UserForm4.ComboBox1.Value)
  Call .ReplaceItemValue("Body", _
  "Please find the attachment of quality audit done against the ticket that you have dealt")
  ndoc.SaveMessageOnSend = True
  Set attachme = ndoc.CreateRichTextItem("attach1")
  Set embed = attachme.EmbedObject(1454, "attach1", pth1 & "score.xls", "")
  Call .Send(False, nto)
 
  End With
 
  MsgBox "Mail has sent to-" & ntoin this at code first the error was thrown at
		Code:
	
	set lot = createobject("Lotus.Notessession")
		Code:
	
	Set ndir = lot.GetDbDirectory("")Please suggest me and aswell if I want to use the code in Excel 2003 what else I have to do? what are the reference that I need to check.
Regards,
sakthi
