Can you guys tell me why I get a "Run-time error '13'?" on this line:
"If Cell = "#N/A" Then"
This is my code:
Much appreciate it!Please Login or Register to view this content.
Can you guys tell me why I get a "Run-time error '13'?" on this line:
"If Cell = "#N/A" Then"
This is my code:
Much appreciate it!Please Login or Register to view this content.
Last edited by GeorgY; 03-04-2009 at 03:17 PM.
Maybe this:
Please Login or Register to view this content.
Last edited by JBeaucaire; 03-04-2009 at 02:23 PM.
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
?None of us is as good as all of us? - Ray Kroc
?Actually, I *am* a rocket scientist.? - JB (little ones count!)
Thanks, that worked.
Now the problem is that I have about 45,000 rows. There are only 150-200 erros that would imply that about 150-200 rows would have to be copied. However, this seems to be taking forever, it copies about 1 line per minute.
Any way to speed it up?
If you posted a sheet, or a small sample of it, could fiddle with your code directly and see. Else just making general untested suggestions.
Perhaps not selecting cells will speed things up.
Please Login or Register to view this content.
Try turning off screen updating:
At the beginning of your code, after you name your variables put:
And at the end, before end sub put:Please Login or Register to view this content.
DavePlease Login or Register to view this content.
Please get the sheet from this URL, because I am having trouble attaching it via the forum:
http://bplusbsolutions.com/Book1.zip
It just takes it forever to run...almost as if it will never finish.
I zipped the file because there is lots of data on the spreadsheets.
Last edited by GeorgY; 03-05-2009 at 02:01 AM.
Well, this code runs a little faster as it skips the "copy 45000 VLOOKUP formulas in place. But it still took over 10 minutes.
Please Login or Register to view this content.
Last edited by JBeaucaire; 03-05-2009 at 01:48 PM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks