Make HTML table lines visible via vba

  • Hi all,


    I have the below code to create an email via access and insert a table that is converted to rtf format for sending.
    When it is converted to rtf, the table lines are not visible any more. What can I change in the code to make the lines visible?



    Greetings.

  • Re: Make HTML table lines visible via vba


    try this




  • Re: Make HTML table lines visible via vba


    Hi,


    Thanks for you tip. The only thing is that when it is in HTML and not RTF, my macro in outlook wil not be able to find text inside the tables and will not work.
    Any chance the below code can be adjusted to see the HTML and find the words inside the table?


  • Re: Make HTML table lines visible via vba


    i used your code and it worked fine for me it took the table criteria and the staus as you described...


    what is the issue are you getting any error?

  • Re: Make HTML table lines visible via vba


    Hi,
    When the table is in RTF it will find the text, if in HTML it does not.
    Maybe language settings in windows?


    For me this is strange and no clue where I went wrong.


    Greetings.

  • Re: Make HTML table lines visible via vba


    have you tried my code and then use your code for extracting the data from mail it should do the trick try using debug mode go step by step and see if the strParameter comes with the data and so on...

  • Re: Make HTML table lines visible via vba


    Hi,


    Nothing in the immediate window :(
    when I run the macro with the

    Code
    oMail.BodyFormat = 3

    it wil just work fine, but then I don't have the table borders. I will try to use this code at home and see what will be (at work I use office 2003 and at home 2013, could be difference).


    Greetings.

  • Re: Make HTML table lines visible via vba


    Hi,


    I will try to have a look at it and see if I can make something work. For now I use it without the borders and it works.


    Greetings.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!