how to 'prevent' excel from formatting

junoonxyz

New Member
Joined
Jan 31, 2011
Messages
1
I've got two issues. 1) I want to export data to Excel 2007/2010 using copyRecordset method. It works fine for non filtered recordset,but for a filtered recordset it just ignores the filter and dumps all the record on to the excel sheet. I've not been able to find a solution to that on the net
2) So, I am doing the hardway. Which is populating each cell one at a time! Works fine mostly(although pretty slow) except that it(Excel) is unnecessarily formatting the data. For example, if data is like 'Sep1', it formats it into 1 sept. What's the syntax for preformatting the cell. May be if preformat the cell like general or text type, it won't format the actual data? suggestions?Thanks
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

Forum statistics

Threads
1,223,237
Messages
6,170,928
Members
452,366
Latest member
TePunaBloke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top