+ Reply to Thread
Results 1 to 10 of 10

SendMail to FAX office2010

  1. #1
    Registered User
    Join Date
    06-27-2012
    Location
    Israel
    MS-Off Ver
    Excel 2010
    Posts
    4

    Question SendMail to FAX office2010

    Hi,
    I have vba application that send letters by fax or mail from excel with :
    ActiveWorkbook.SendMail "[FAX:" & fax_num & "]"

    before office 2010 it worked with no problem...
    now when i try to send fax with this program, the outlook convert the string from "[FAX:12345678]" to "12345678", and the message could not be sent without the prefix "[FAX:"

    How can I fix the problem??
    Thanks
    Suzana

  2. #2
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: SendMail to FAX office2010

    Hello Suzana and welcome to the forum,

    Can you show us the vba code so we can see why it is doing this?
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  3. #3
    Registered User
    Join Date
    06-27-2012
    Location
    Israel
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: SendMail to FAX office2010

    The problem with "SendMail" command..

    there is part of the code..... send_type=1 is fax, 2 is mail:
    fax_num it is from DBAccount data..

    If send_type = 1 Then
    Application.Wait 2
    If tel_type = 1 Then
    ActiveWorkbook.SendMail "[FAX:" & ext & "," & fax_num & "]"
    ElseIf tel_type = 2 Then
    ActiveWorkbook.SendMail "[FAX:" & fax_num & "]"
    End If
    ElseIf send_type = 2 Then
    ActiveWorkbook.SendMail mail_add, "Bank transform"
    End If

    I hope it will help to understand the problem..
    Suzana

  4. #4
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: SendMail to FAX office2010

    Hi,

    Please use code tags around your code as it makes it easier to read. Also I don't see the problem from the snippet you posted except for a syntax error which is probably just means that this is a selection of different parts of your code. I am assuming that you are using the SendMail add-in written by Ron de Bruin. Could you upload an example workbook with dummy data?

  5. #5
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: SendMail to FAX office2010

    OK. I see your problem when I downloaded an example file from Ron's site. Let me play around with it and will let you know if I find a workaround.

  6. #6
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: SendMail to FAX office2010

    I see the problem and I don't think there is a solution available with Outlook 2010. The problem is that the program automatically will remove the first 'null' characters which you want to keep and I don't see any way to force the program not to check the email address.

  7. #7
    Registered User
    Join Date
    06-27-2012
    Location
    Israel
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: SendMail to FAX office2010

    Thanks!
    Maybe there is another command that I can use for sending by fax?
    It have to be with no modem and free..
    Suzana

  8. #8
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: SendMail to FAX office2010

    If you have the Microsoft Shared Fax Driver (Fax printer) set up on your computer, this article should help.

  9. #9
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: SendMail to FAX office2010

    This article is specific to Excel vba and should also be of help.

  10. #10
    Registered User
    Join Date
    06-27-2012
    Location
    Israel
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: SendMail to FAX office2010

    Thanks!
    I will try with the second article!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1