Re: How do you get excel to calculate using ADO?



mike wrote:
hello everyone,

I can put and read values from excel using ado. I think the main
point of using excel is you can use it do some calculations. however,
when i put values in some cells and read the values of cells that
normally calculate something using those inputs, it doesnt work. I
have to open excel manually, then close it, before the values of those
cells update. How do I get excel to calculate from ASP using ADO or
some other method so that I can read the updated values?

No way that i know of: for calculations to refresh, the Excel
application has to be involved, which is not the case when using ADO.
Microsoft advises against automating Office applications in ASP code. I
think you are just going to have to do these calculations in your
vbscript code.

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


.



Relevant Pages

  • Re: Charting xy scatter of uneven columns of data
    ... Thanks, Del, for helping us out! ... Jon Peltier, Microsoft Excel MVP ... way to redistribute the data in the column with the least amount of cells ... but one for a maths newsgroup for the basic ...
    (microsoft.public.excel.charting)
  • Re: Formula Help
    ... Your use of "cells" implies you're talking about Excel. ... You'd probably be better off asking in a newsgroup related to Excel. ... I nneed some assistance with a formula... ...
    (microsoft.public.access.macros)
  • Re: Problems using VB.Net OleDbDataAdapter and Excel
    ... Formula cells cannot be updated using ADO. ... Using ADO classic, Jet and OLE DB, I get slightly different behaviour ... Note that although you can change non-formula cells via ADO, any Excel ...
    (microsoft.public.excel.programming)
  • RE: write data to a closed file on network drive
    ... I don't know much about the technical specs of ADO, ... works just for Excel too, ... Sub RS2WS ... Microsoft Active X Data Objects Recordset 2.8 Library ...
    (microsoft.public.excel.programming)
  • Excel file bloat using ADO
    ... I have modified a routine based on the following WebPage that uses ADO ... to add data to closed Excel files. ... How do I update an Excel spreadsheet using ADO? ... Apparently, this is a problem with Access files, given the number of ...
    (microsoft.public.excel.programming)