I can't figure out how to make VB6 let my program write these strings to the .html file
<td width="150" bgcolor="#CCCCCC"><div align="center"><strong>Item</strong></div></td>
<td width="500" bgcolor="#CCCCCC"><div align="center"><strong>Item Description </strong></div></td>
'open the file for writing Open CommonDialog1.FileName For Output As #newfile 'Warning, if this file already exists it will be overwritten! 'Start writing parts list to .html file now Print #newfile, " <td width="150" bgcolor="#CCCCCC"><div align="center"><strong>Part</strong></div></td>"
VB keeps throwing an compile error, expected expression on the first "#" sign in front of bgcolor color code #cccccc.
Any line that should be written to the text file won't write when it has a # in it. It keeps saying expected expression. When there isn't any. Please give me your suggestions.
Thanks,
matt

New Topic/Question
Reply



MultiQuote



|