|
-
Oct 3rd, 2005, 05:43 AM
#1
Thread Starter
Addicted Member
code running on xp not on 2000
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.
Last edited by v_gyku; Oct 3rd, 2005 at 06:15 AM.
-
Oct 3rd, 2005, 07:20 AM
#2
Re: code running on xp not on 2000
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?
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
-
Oct 3rd, 2005, 07:25 AM
#3
Re: code running on xp not on 2000
 Originally Posted by v_gyku
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.
If you send it to yourself does it work?
-
Oct 3rd, 2005, 07:42 AM
#4
Re: code running on xp not on 2000
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.
Danny
Never Think Impossible
If you find my answer helpful then please add to my reputation
-
Oct 3rd, 2005, 07:49 AM
#5
Re: code running on xp not on 2000
I believe you can do .ResolveNames (or something like that) and it will do a pretty good job of figuring it out
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
-
Oct 3rd, 2005, 07:50 AM
#6
Thread Starter
Addicted Member
Re: code running on xp not on 2000
Getting the following error ----
Run-time error'-2044706811 (86204005)':
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
If i put any tel.no while running in xp(office 2003) it works.
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.
-
Oct 3rd, 2005, 08:03 AM
#7
Re: code running on xp not on 2000
ahh.. faxing. you need to install "Microsoft At Work fax program"
Outlook 2K doesnt have built in fax capabilities
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|