Results 1 to 2 of 2

Thread: Adding an HTML row using VBA

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2004
    Posts
    3

    Adding an HTML row using VBA

    I am creating code that automatically populates an HTML page through the conents of the excel spreadsheet. I can get the table, but I am not sure on how to add more rows as needed. The code just keeps overwriting the previous entry.

    <HTML><Head><Title>Sample Output</Title></Head>
    <Body><Table Border=3>
    <TR><TD>Sample Descrip.</TD><TD><a HREF="">Sample</a></TD><TD>03</TD><TD>05-SEP-2003</TD></TR>
    </Table></Body></HTML>

    any help?

  2. #2
    Junior Member
    Join Date
    Mar 2003
    Location
    Mt. Holly, NJ
    Posts
    31
    If I'm understanding what you want correctly, I believe that you should be adding a new row simply by a new <TR> </tr> tag set with your <TD></TD> tag sets in between.
    Thus it shoudl look something like this:

    <html><head><title>Table Output</title></head>
    <table Border=3>
    <tr><td>Row1 Cell1</td>
    <td>Row1 Cell2</td>
    </tr>
    <tr><td>Row2 Cell1</td>
    <td>Row2 Cell2</td>
    </tr>
    </table>
    </html>


    HOpe this helps.
    Josh Wise

Posting Permissions

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



Click Here to Expand Forum to Full Width