Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Use CopyFromRecordSet to insert named range formulas? (Excel 2000)

I am trying to insert a recordset into an Excel worksheet using
CopyFromRecordset. I was hoping for certain cells that my query could simply
insert the text of a named range formula as below:

UPC Calculated Value Of Some Sort
Quantity
Row 00300300303 =GetValueFormula 5

The named range is simply ending up as text in the cell.

Is there any way to do what I'm trying to do?

Thanks.

--
---------------------------------------------------------------
Kel Good
MCT, MCAD, MCSD for Microsoft.NET


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 120
Default Use CopyFromRecordSet to insert named range formulas? (Excel 2000)


Hi Kel,

Currently I am finding one support professional for you on this issue. If
any update, we will reply here at the first time.

Best Regards,
Wei-Dong XU
Microsoft Product Support Services
This posting is provided "AS IS" with no warranties, and confers no rights.
It is my pleasure to be of assistance.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Use CopyFromRecordSet to insert named range formulas? (Excel 2000)

Hi Wei-Dong,

Thanks for your reply. I would definitely appreciate an answer for why this
is not working.

I have been able to iterate through all the cells in the range in question,
setting the formula for each cell like so:

cellItem.Formula = cellItem.Formula

When I do this, the named formulas are now recognized. But this is a very
time consuming way to get things working. It should simply work to place the
formula name in the cell via CopyFromRecordset I would think.

Kel


"Wei-Dong XU [MSFT]" wrote in message
...

Hi Kel,

Currently I am finding one support professional for you on this issue. If
any update, we will reply here at the first time.

Best Regards,
Wei-Dong XU
Microsoft Product Support Services
This posting is provided "AS IS" with no warranties, and confers no
rights.
It is my pleasure to be of assistance.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 225
Default Use CopyFromRecordSet to insert named range formulas? (Excel 2000)

Hi

Based on my research, when we use the CopyFromRecordset the load the data
from the database to the cell.
e.g.
=SUM(A1:B1)
it will be recongnized as a text but not a fumular.

Based on my knowledge this is by design, because the cell have never
entered the edit mode.

246335 How To Transfer Data from an ADO Recordset to Excel with Automation
http://support.microsoft.com/?id=246335


Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Use CopyFromRecordSet to insert named range formulas? (Excel 2000)

Hi Peter,

Thanks for your reply.

What's odd is the value is still in the Formula property. If after the
CopyFromRecordset statement I iterate over the cells in the range and do the
following, the formula becomes acknowledged:

cellItem.Formula = cellItem.Formula

I find myself why, if the named range statement is already in the Formula
property of the cell like this, it is not acknowledged by the cell.

Kel


""Peter Huang" [MSFT]" wrote in message
...
Hi

Based on my research, when we use the CopyFromRecordset the load the data
from the database to the cell.
e.g.
=SUM(A1:B1)
it will be recongnized as a text but not a fumular.

Based on my knowledge this is by design, because the cell have never
entered the edit mode.

246335 How To Transfer Data from an ADO Recordset to Excel with Automation
http://support.microsoft.com/?id=246335


Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no
rights.





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 225
Default Use CopyFromRecordSet to insert named range formulas? (Excel 2000)

Hi

Thanks for your knowledge sharing.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Reply
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
Excel 2007 - Find formulas that use a named range Office Productivity Consultant Excel Discussion (Misc queries) 0 October 19th 09 11:17 PM
Insert Named Range Into a Cell Tondos Excel Worksheet Functions 2 February 27th 09 06:29 PM
Vlookup using a reference to a named range?(Excel 2000) Joe Excel Discussion (Misc queries) 4 May 19th 08 06:41 AM
INSERT into named range using ADO Tim Payne Excel Programming 3 January 28th 05 09:26 AM
Insert named range problem FinChase Excel Programming 11 November 15th 04 07:21 PM


All times are GMT +1. The time now is 04:03 PM.

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"