Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Needed: An efficient way of setting values in Excel using VBA 1

Status
Not open for further replies.

popper

Programmer
Dec 19, 2002
103
AU
I have a need to fill a very large number of Excel cells with values from a database table. When I use the Range.Cells(row,col) method I find it is very slow, requring over 30 minutes to complete the process. Does anyone know whether or not there is a faster method?

I would appreciate help on this.

Thank you
 
popper,
Have looked at [tt]CopyFromRecordset()[/tt] method of the [tt]Range[/tt] object?

Hope this helps,
CMP

[small]For the best results do what I'm thinking, not what I'm saying.[/small]
(GMT+08:00) Singapore
 
Thank you so much. This solution is lightening fast and solved my problem completely!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top