VBA/Macro export to HTML ~with formatting~

D

David Lewis

Can I export a table to HTML using VBA or a macro (the
transfertext action/command?) and preserve formatting, just
as with the check box on the interactive export wizard?

I cannot find any such option on transfertext, and when I
export to HTML with it, it is not formatted, which is
rather messed up.

Alternatively, if there is a way in macro/VBA to export a
~form~, I could use a datasheet form based on the table,
which automatically exports to HTML formatted with the wizard.

Thanks. --David Lewis
..
 
T

Tim Ferguson

Can I export a table to HTML using VBA or a macro

SELECT "<p>" & FieldOne & ", " & FieldTwo & "</p>"
AS LineOfHTML
FROM MyTable
and preserve formatting, just
as with the check box on the interactive export wizard?

Don't really understand this: surely check boxes appear on forms, and you
asked about tables. Since HTML is text-based, you should be able to do
something like

IIF(BoolField = TRUE, "[v]", "[ ]")

or look up the fancy fonts that have those pretty little squares in. Just
hope your target browsers support them.

Hope that helps


Tim F
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top