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: 1
Default Differences in formulas using HTML between 97 and 2002

I have an import to excel feature in my ASP page where i
use HTML to build my excel worksheet. Putting formulas
(Example =Sum(A9:A34) OR =(D34+D37+D45)) in this worksheet
works perfectly in EXCEL 97. But does not work in EXCEL
2002.

Can anyone point out rule of thumb differences between the
2 versions for writing out formulas?

--Sample code for =Sum(A9:A34)

oExcel.Add "<TD NOWRAP ALIGN=right CLASS='report_red'
TITLE='" & FormatNumber(vFinal(iCols, iFinal), 5)
& "'<B" & "=SUM(" & sTempChar & Cstr
(iSection_MergeStart) & ":" & sTempChar & CStr
(iExcelNumLines-1) & ")" & "</TD"

--Sample code for =(D34+D37+D45)
oSegment1 is an Object variable
vSegmentTotalPos is an array which has 34,37,45 as elements

oSegment1.Add "<TD NOWRAP ALIGN=right CLASS='report_red'"
& "'<B=("

For iArr = 0 to UBound(vSegmentTotalPos)



If iArr < 0 Then

oSegment1.Add "+"

End If

oSegment1.Add "D" & CStr
(vSegmentTotalPos(iArr))

Next

oSegment1.Add ")</TD"

oExcel.Add oSegment1.value


thanks
sydney

 
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
Formulas in Excel are not converted to Html when I save as htm? Jay Excel Discussion (Misc queries) 0 December 5th 07 02:26 AM
MS Excel 2002 formulas eloughrey Excel Worksheet Functions 2 December 3rd 07 05:42 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
What are the differences between Excel 2000 and Excel 2002 ceroork New Users to Excel 2 January 22nd 05 10:49 AM
Displaying CSV file with HTML tags in Excel 2002 Prakash Excel Programming 0 August 20th 03 12:29 PM


All times are GMT +1. The time now is 10:24 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"