PC Review


Reply
Thread Tools Rate Thread

CellFormat is lost when using CopyFromRecordset

 
 
lucy
Guest
Posts: n/a
 
      7th Dec 2006
I created an excel template with special format set for certain columns
(e.g. date format, number format, etc).
When I copy the data from SQL into this template by using CopyFromRecordset,
these formats are lost for those record rows but remained for other rows.

Is there any solution that I can keep the pre-defined format set in the
template even I use CopyFromRecordset?
Thank you very much.

Best regards,
LUCY ^.^


 
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
CellFormat object michdenis Microsoft Excel Discussion 1 26th Sep 2008 02:07 PM
Dont know cellformat in vba osinglad Microsoft Excel Programming 1 5th Sep 2008 09:59 PM
Excel: how to convert "27.11.2007 15:13" to number (cellformat fai dominico23 Microsoft Excel Misc 2 11th Dec 2007 02:43 PM
CopyfromRecordset MattShoreson Microsoft Excel Programming 2 15th Mar 2006 01:36 PM
Save Cellformat in a variable jj Microsoft Excel Misc 0 17th Jan 2006 05:59 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:00 AM.