Need help with Visual Basic

Daniellel

Board Regular
Joined
Jun 21, 2011
Messages
242
Hi,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p></o:p>
I am completely self-taught with VB and am still a beginner. I have recorded a massive piece of code (it is about 11 pages in word) and it is really slow (about 30 mins) to run the macro. I does have a formula that it pastes into 840 cells on 4 different tabs ("=INDEX(TO3!$C$1:$I$9999,MATCH($A9&$B9,TO3!$A$1:$A$9999&TO3!$B$1:$B$9999,0),COLUMNS(TO3!$C2:C2))" ) I have posted about this before asking if anyone can help me speed it up but nothing has helped a great deal. The only thing people have referred to that I have not tried is a 'Helper Cell' but I am unsure what this means or how to do it. <o:p></o:p>
<o:p></o:p>
What I am really asking is if there is anyone out there that would be kind enough to run his or her expert eyes over it for me and to maybe help out. <o:p></o:p>
<o:p></o:p>
Can you help???<o:p></o:p>
<o:p></o:p>
Many thanks in advance<o:p></o:p>
<o:p></o:p>
Danielle
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
20 minutes ago and now:
"Savefile is currently down for maintenance, we will be back shortly.
Estimated downtime: 10 minutes"
 
Upvote 0
I ran the macro, out of the box, so to speak, and it completed in less than 10 seconds - you say 30 minutes!!

What machine are you using? operating system?, version of excel? etc.
What other apps. are loaded?
If you tried running it with only Excel loaded (and only loaded with that file) - does it run faster?

It seems pointless me spending time speeding up code if the slow running is because of something else.
 
Upvote 0
I ran the macro, out of the box, so to speak, and it completed in less than 10 seconds - you say 30 minutes!!

What machine are you using? operating system?, version of excel? etc.
What other apps. are loaded?
If you tried running it with only Excel loaded (and only loaded with that file) - does it run faster?

It seems pointless me spending time speeding up code if the slow running is because of something else.

Hi, Thank you for looking at this for me. I am using a HP Compaq PC (My work PC) and we only have excel 2003. Cant believe it only took 10 seconds! so jelous! i have to do this 3 times a day and it freezes my PC and does take up to 30 mins to come alive again! Really sorry if i have wasted your time, i had no idea that it might not be the VBA code. I have tried with only that document open and it does reduce it to about 20 mins but still not seconds :(

Thank you again
 
Upvote 0

Forum statistics

Threads
1,224,597
Messages
6,179,808
Members
452,944
Latest member
2558216095

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