I have written vba program to send fax from outlook.
Its working fine on xp(outlook 2003).
BUt on windows 2000 prof(outlook 2000)., it gives runtime error on this line -:
.send --Outlook does not recognize one or more names.
Printable View
I have written vba program to send fax from outlook.
Its working fine on xp(outlook 2003).
BUt on windows 2000 prof(outlook 2000)., it gives runtime error on this line -:
.send --Outlook does not recognize one or more names.
post more code...
names? could it be who your sending it to? if you copy the name directly into Otl2000.. does it error when you do it manually?
If you send it to yourself does it work?Quote:
Originally Posted by v_gyku
When you send the email.. if there are any spaces in any name, outlook will try to determine the address of the person, as it is presuming that this name exists in an address book.
If it is not in the address book then it will be unable to recognise the name, if you use outlook itself to try and send to an address which you know is wrong then a "Check Names" dialog is displayed to prompt you that the name was not found, and offers up some recommendations.
Doing this through VBA results in a run-time error of
-142852667: Outlook does not recognise one or more names.
I believe you can do .ResolveNames (or something like that) and it will do a pretty good job of figuring it out
Getting the following error ----
Run-time error'-2044706811 (86204005)':
If i put any tel.no while running in xp(office 2003) it works.Code:
Private Sub Command1_Click()
TelNo = "223344" '*** You can use any intl format also
'Create a mail item.
Set objOutlookMsg = objOutlook.CreateItem(olMailItem)
With objOutlookMsg
.To = "[Fax:" & TelNo & "]"
.Subject = "Automated System Reports."
.Body = "To Mr. XYZ" & Chr(10) & " This is an Automated Transmission from the computer." & Chr(10) & "Send Fax Completed." & Chr(10) & "------ End of Doc ------"
.Importance = olImportanceHigh
.Attachments.Add ("C:\windows\win.ini") 'Pathname+filename with ext
.Send
End With
Set objOutlookMsg = Nothing
End Sub
It works means I dont know id fax goes or not, but it dosn't gives any error and tasks completes.Message comes in my sentmail items in outlook.
But when running on office 2000, win 2000 prof, it gives above mentioned runtime error.
ahh.. faxing. you need to install "Microsoft At Work fax program"
Outlook 2K doesnt have built in fax capabilities