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

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Forum statistics

Threads
1,226,730
Messages
6,192,703
Members
453,748
Latest member
akhtarf3

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