LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 692
Default DeleteDuplicateRows: problem with this macro

I am surprised. Usually these help with speed.
(need to apologize - you did have it in your posted code)

Usually I put all my code in the middle. So in your case it would be in the
Super Macro.

I have been playing with some alternate schemes but the calculation time
just climbs after about
5,000 lines.

Don't know if it could work, but try to sort on your column and delete rows.

Try this on a copy of your workbook. Do it manually first and see if it is
practical.

Another alternative is to look at filtering. With Advanced Filtering, you
can pull out unique records only.
This will still take some time, but am not sure of what it would be.

--
steveB

Remove "AYN" from email to respond
"KHashmi316" wrote
in message ...

STEVE BELL Wrote:
If you haven't already used these - they help speed up macros

Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
[ your code ]

Application.ScreenUpdating = True
Application.Calculation=xlCalculationAutomatic

--
steveB


Hmm... I tested this scheme by running a stop-watch on the code both
with and without the "speed-up" tweak. Using the "sped-up" method
actually took 10 seconds longer. " I'm not sure whether you meant
putting the tweak around just the DeleteDuplicateRows macro or the
"super" macro I'm using which calls on several sub-maros including
DeleteDuplicateRows. I tweaked the latter.

Thx for your reply and any further light you can shed.


--
KHashmi316


------------------------------------------------------------------------
KHashmi316's Profile:
http://www.excelforum.com/member.php...o&userid=10439
View this thread: http://www.excelforum.com/showthread...hreadid=376776



 
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
I tried to get around the problem of the pivot table field settingdefaulting to Count instead of Sum by running a macro of change the settingfrom Count to Sum. However, when I tried to run the Macro, I got error messageof run time error 1004, unable Enda80 Excel Worksheet Functions 1 May 3rd 08 02:35 PM
I tried to get around the problem of the pivot table field settingdefaulting to Count instead of Sum by running a macro of change the settingfrom Count to Sum. However, when I tried to run the Macro, I got error messageof run time error 1004, unable Enda80 Excel Discussion (Misc queries) 1 May 3rd 08 10:52 AM
Problem using Day() in a macro Marie Excel Worksheet Functions 2 December 14th 07 06:01 PM
Macro Problem carl Excel Worksheet Functions 1 August 21st 07 07:22 PM
Macro problem - help please Peter[_28_] Excel Programming 11 May 8th 05 12:58 AM


All times are GMT +1. The time now is 04:28 PM.

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

About Us

"It's about Microsoft Excel"