I have an Excel file with a VBA code to send a outlook mail according specific excel cell contents, but it gave me a Compile error.
The first few lines of the code are copied in directly from the VBE as:
Dim OutApp As Object
Dim OutMail As Object
Dim impname As String
Dim leadname As String
Dim subje As String
Dim ns As Namespace
Dim myOlSel As Outlook.Selection
The error showing at "Dim ns As Namespace"
This code was working fine till last three day's but now it is showing an error msg. I have tried to clear Missing libraries form "Tools | References" but still I am facing the issue.