Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 86
Default Performance issues, looking for alternate solutions

We have a large spreadsheet we build every night for our floor traders, which
combines information from Excel (pricing from Bloomberg) and Access
(accounting data), using VBA to mediate.

There is a major performance problem I'd like to fix. One of the major steps
runs calculations combining this information, using sheets in Excel to do
this. This is very slow. The same code running in VBA arrays works much
faster, 2 to 3 times. The problem is that when the results are pasted back
into Excel, any existing formatting is erased.

What I'd like to do is keep the formatting that's currently on the sheet,
and paste in just the values we're calculated in the array. This has so far
eluded me. Any suggestions?

Maury
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Performance issues, looking for alternate solutions


Not sure what you mean by pasting back from an array. If it truly is
paste, you can use paste special:

Selection.PasteSpecial Paste:=xlPasteValues



--
kkkni
-----------------------------------------------------------------------
kkknie's Profile: http://www.excelforum.com/member.php...nfo&userid=754
View this thread: http://www.excelforum.com/showthread.php?threadid=26849

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 593
Default Performance issues, looking for alternate solutions

kkknie wrote ...

Not sure what you mean by pasting back from an array. If it truly is a
paste, you can use paste special


And if it isn't a paste, you can use the Range's Value property e.g.

vntArray = Sheet1.Range("$C$2:$E$5").Value
Sheet1.Range("$C$2:$E$5").Value = vntArray

Jamie.

--
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
IF formula with many solutions. Jaime.CIS New Users to Excel 5 December 7th 06 08:25 PM
Looking for Solutions Tom Ogilvy Excel Programming 0 June 21st 04 04:51 PM
Spreadsheet Solutions Perminant Template[_2_] Excel Programming 1 June 16th 04 12:46 AM
Using VBA: Trying to write new solutions ONLY Michael[_27_] Excel Programming 8 June 1st 04 10:55 PM
Looking for Solutions Tony Johnson Excel Programming 6 August 14th 03 03:03 PM


All times are GMT +1. The time now is 09:01 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"