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 updating range value via knowledbase 278973 fails when cell contains formula

I'm using ADO from Access to update some massive Excel worksheets.
The adodb connection object points to the workbook.
The recordset points to a named range.
I read through the recordset and do a
oRS.Fields(0) = newIntergerValue
oRs.Update.


This technique works well for a few cells and then fails.
The cell it fails on contains a formula something like
=Sum(....

From what I have read this evening, I am suspecting that this is being caused
by different data type in the cell. Am I able to acertain the data type of the
cell by reading it and examining some ADO property? If so then I could adjust
the type of the data I use for the replacement, most likely string.

Suggestions welcome.
Thanks in advance
 
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
updating cell range depending on input value handicapper Excel Worksheet Functions 3 April 17th 10 05:50 AM
Updating Next Consecutive Cell in Range Stilltrader47 Excel Worksheet Functions 8 April 10th 10 06:00 AM
Entering a Value & Updating the Next Empty Cell in a Range Stilltrader47 Excel Worksheet Functions 6 February 25th 10 05:17 AM
Formula fails in text formatted cell kennoc Excel Worksheet Functions 2 May 3rd 06 12:36 AM
Updating Chart fails Frank Schuberth Charts and Charting in Excel 1 December 15th 04 01:46 PM


All times are GMT +1. The time now is 06:46 PM.

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

About Us

"It's about Microsoft Excel"