PC Review


Reply
Thread Tools Rate Thread

Is CopyFromRecordset a bug of Excel?

 
 
sunzhoujian@gmail.com
Guest
Posts: n/a
 
      3rd Aug 2007

Here is the code piece...

With ThisWorkbook.Sheets("XX XX")
..Range(.Cells(4, 2), .Cells(intMaxRow + 3, _
intMaxCol + 1)).CopyFromRecordset rs
End With


Does anyone have experience of using CopyFromRecordset? I used it to
copy data from Access to Excel Worksheet. However, all those data
(with numerical ) are being changed to date. I have to mannually
format those cells before they can display correct. Thanks so much in
advance if you know what is the problem...

 
Reply With Quote
 
 
 
 
Dave Trindall
Guest
Posts: n/a
 
      31st Oct 2009
I'm having a similar issue, except for me it's numbers in the PREVIOUSLY active worksheet that are being formatted to dates.

I'm using Excel 2007.



sunzhoujia wrote:

Is CopyFromRecordset a bug of Excel?
02-Aug-07

Here is the code piece..

With ThisWorkbook.Sheets("XX XX"
..Range(.Cells(4, 2), .Cells(intMaxRow + 3,
intMaxCol + 1)).CopyFromRecordset r
End Wit

Does anyone have experience of using CopyFromRecordset? I used it t
copy data from Access to Excel Worksheet. However, all those dat
(with numerical ) are being changed to date. I have to mannuall
format those cells before they can display correct. Thanks so much i
advance if you know what is the problem...

Previous Posts In This Thread:

On Thursday, August 02, 2007 11:56 PM
sunzhoujia wrote:

Is CopyFromRecordset a bug of Excel?
Here is the code piece..

With ThisWorkbook.Sheets("XX XX"
..Range(.Cells(4, 2), .Cells(intMaxRow + 3,
intMaxCol + 1)).CopyFromRecordset r
End Wit

Does anyone have experience of using CopyFromRecordset? I used it t
copy data from Access to Excel Worksheet. However, all those dat
(with numerical ) are being changed to date. I have to mannuall
format those cells before they can display correct. Thanks so much i
advance if you know what is the problem...

EggHeadCafe - Software Developer Portal of Choice
..NET 2.0 Application Restart When it Goes "KABOOM"
http://www.eggheadcafe.com/tutorials...tion-rest.aspx
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel format changes after copyfromrecordset marc vda via AccessMonster.com Microsoft Access VBA Modules 1 6th Jun 2011 07:22 PM
copyFromRecordSet code in excel-vba oscar.c.marin Microsoft Excel Programming 1 28th Oct 2008 04:47 PM
Excel Automation: CopyFromRecordset - what other commands are available? Stapes Microsoft Access 4 14th Sep 2007 09:38 AM
MFC - CopyFromRecordset - Copy data to Excel =?Utf-8?B?SmVuIExlb25hcmQ=?= Microsoft Excel Programming 0 7th Jun 2006 03:01 AM
CopyFromRecordset Excel Automation =?Utf-8?B?Qm9iIEJhcm5lcw==?= Microsoft Access Form Coding 0 6th Aug 2004 08:57 PM


Features
 

Advertising
 

Newsgroups
 


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