MrExcel Message Board


Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old Apr 5th, 2002, 06:43 AM   #1
jimbobsteele
 
Join Date: Apr 2002
Posts: 1
Default

Dear All

A web page generated via ASP provides a long table with data from a DB. I want to give users the ability to import the table into Excel.

I have found that I can simply send the table, in HTML format, to a text file and name the file with an XLS extension. Excel will read the file and convert it with no further coding. (So I can deliver it directly from the web page.)

I like the simplicity of this method. However, the users now want colors/formatting, etc. I have found that I can change the bgcolor of cells, and Excel accepts those colors. But, it only seems to render a few standard Excel colors. And it seems hit & miss as to which code provides which color.

For example:
bgcolor="#D0D0D0" is gray
bgcolor="#F0F0F0" is white

Is there a list of codes/colors that are defined and known to work? I've check the Excel VB help, and have not found this information.

Any help would be appreciated.

Thanks - Jamie
jimbobsteele is offline   Reply With Quote
Old Apr 5th, 2002, 09:44 AM   #2
Anne Troy
MrExcel MVP
 
Anne Troy's Avatar
 
Join Date: Feb 2002
Location: Allentown, PA
Posts: 2,418
Default

97 is somewhat limited, but 2000 has true colors. Which version are you using? I don't do code, so I don't know if you can use RGB, etc.
__________________
~Anne Troy
Office Articles
Anne Troy is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT +1. The time now is 05:51 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
All contents Copyright 1998-2009 by MrExcel Consulting.