LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Programmatically create html as input to Excel

I'm trying to use fixed format information in a file (used to be printed) to
Excel 2003. One goal is to try to make the spreadsheet look as close to the
data file as possible. I'm also trying to disturb the user's environment as
little as possible and drive Excel from the program. I'm currently filling
in the proper cells with the right data but have some limitations that I'd
like to overcome.

Can I tell Excel to use a fixed-sized font?

Can I tell Excel to use a red background for selected cells without knowing
the cell number?

A column may not always have numbers (perhaps column headers, etc.) Can I
indicate that if a cell in column 10, 11, or 13 is numeric, it should be
formatted to always have two decimal places? It should still remain a number
and not be converted to text, kind of like using
Format-Cell-Number-Currency.

Sometimes a number (250.00 and -332.11, both with following spaces) will not
be converted to a number. The cell has an error message of "The number in
this cell is formatted as text or preceeded by an apostrophe." What do I
need to do to get rid of the error?

I tried preceeding all numbers in the column with an "=" so the numbers
ended up being "= 250.00" [space follows the equal] or "=-322.11" [minus sign
replaced the space"]. That caused a different error on other cells: "The
formula in this cell differs from the formulas in this area of the
spreadsheet." Interestingly enough, the same column has one value of 6.02
with the 2nd error message and one value of 6.02 without.

The solution to this whole formatting mess may be to format all numbers as
text and let the user format them to be numeric if that's needed.

I know this is a bunch of questions. Thanks for your time.
Scott
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Programmatically create button on Excel worksheet (vb.net) valerashylin Excel Programming 2 March 19th 08 01:27 PM
if i cut and paste from html into excel, i cannot create formulas John Spann Excel Discussion (Misc queries) 8 December 29th 06 02:36 PM
Create programmatically list of combinations for choices from data sets in excel vba somethinglikeant Excel Programming 2 July 9th 06 10:26 PM
From Excel 97 Programmatically create access 97 or 2000 database and export data to. [email protected] Excel Programming 0 December 23rd 04 10:44 PM
Create Excel sheet in HTML with comments Luke Webber Excel Programming 2 October 7th 03 02:34 PM


All times are GMT +1. The time now is 09:40 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"