I would welcome any thoughts, ideas or suggestions as to how I can optimise the VBA code listed below.
This is running on Windows XP/Excel 2003 on a Toshiba Portege laptop with 512 Mb RAM
I am trying to analyse the contents of a worksheet. To that end, I have created a matrix on another sheet. This matrix is 117 columns wide by 232 rows deep and is/was populated by SUMPRODUCT formulae. The SUMPRODUCT formula works and gives the correct results but the sheer volume made the worksheet/workbook unusable.
To overcome the impact on the rest of the workbook, I had copied the formulae and pasted the values back. I now want to revisit the calculation and add another criteria.
Initially, I just edited the formula and copied and pasted it to the rest of the matrix ... but the workbook appeared to hang. I decided then to use VBA to insert the formulae a column at a time and copy and paste the values. However, this process is taking around 7 to 9 seconds per column. What is worse, if I just let it run, it seems to hang.
I can nurse the code through and it works but I could do without sitting for 15 minutes or so every time I run it. I have other sheets I will want to do similar analyses with so it's not just idle interest.
![]()
Please Login or Register to view this content.
Thanks in advance for any help or guidance you can offer.
Regards
Bookmarks