Yes.  ThEre are general reasons.  One is using select rather than ranges,
another is not setting calculate to manual before running a complex macro,
and the third is not switching of screenUpdating while the macro is running.

On Sunday, 23 December 2012, hanumant shinde wrote:

> Hi guys,
>
> sorry but i cant share the workbook as its company workbook so i dont have
> it.
>
> are there general reasons which may cause the delay?
> like if there are lots of Vlookup and countif formulas on the sheet.
>
>
>   ------------------------------
> *From:* Prince <prince141...@gmail.com <javascript:_e({}, 'cvml',
> 'prince141...@gmail.com');>>
> *To:* excel-macros@googlegroups.com <javascript:_e({}, 'cvml',
> 'excel-macros@googlegroups.com');>
> *Cc:* hanumant shinde <arsfan2...@yahoo.co.in <javascript:_e({}, 'cvml',
> 'arsfan2...@yahoo.co.in');>>
> *Sent:* Sunday, 23 December 2012 11:42 AM
> *Subject:* $$Excel-Macros$$ Re: Reason for delay in Filter
>
> Hi Prashant,
>
> Please share your workbook so that we diagnose the problem and can provide
> whatever best we can do.
>
> Regards
> Prince
>
> On Saturday, December 22, 2012 9:51:03 PM UTC+5:30, prashant shinde wrote:
>
> Hi Friends,
>
> Can somebody please tel me what are the reasons for delay in Autofilter
> code.
> We have a macro file where in one of the function we have used
> Selection.AutoFilter Field:=1, Criteria1:="a"
>
> This code is executed thousand times and it takes almost 1.75 seconds to
> execute above line once. so the whole process takes lots of time.
>
> Can somebody please tell me how why is it happening.
>
> --
> Join official Facebook page of this forum @
> https://www.facebook.com/discussexcel
>
> FORUM RULES
>
> 1) Use concise, accurate thread titles. Poor thread titles, like Please
> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
> will not get quick attention or may not be answered.
> 2) Don't post a question in the thread of another member.
> 3) Don't post questions regarding breaking or bypassing any security
> measure.
> 4) Acknowledge the responses you receive, good or bad.
> 5) Jobs posting is not allowed.
> 6) Sharing copyrighted material and their links is not allowed.
>
> NOTE : Don't ever post confidential data in a workbook. Forum owners and
> members are not responsible for any loss.
> ---
> You received this message because you are subscribed to the Google Groups
> "MS EXCEL AND VBA MACROS" group.
> To post to this group, send email to 
> excel-macros@googlegroups.com<javascript:_e({}, 'cvml', 
> 'excel-macros@googlegroups.com');>
> .
> To unsubscribe from this group, send email to
> excel-macros+unsubscr...@googlegroups.com <javascript:_e({}, 'cvml',
> 'excel-macros%2bunsubscr...@googlegroups.com');>.
> Visit this group at http://groups.google.com/group/excel-macros?hl=en.
>
>
>
>
>    --
> Join official Facebook page of this forum @
> https://www.facebook.com/discussexcel
>
> FORUM RULES
>
> 1) Use concise, accurate thread titles. Poor thread titles, like Please
> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
> will not get quick attention or may not be answered.
> 2) Don't post a question in the thread of another member.
> 3) Don't post questions regarding breaking or bypassing any security
> measure.
> 4) Acknowledge the responses you receive, good or bad.
> 5) Jobs posting is not allowed.
> 6) Sharing copyrighted material and their links is not allowed.
>
> NOTE : Don't ever post confidential data in a workbook. Forum owners and
> members are not responsible for any loss.
> ---
> You received this message because you are subscribed to the Google Groups
> "MS EXCEL AND VBA MACROS" group.
> To post to this group, send email to 
> excel-macros@googlegroups.com<javascript:_e({}, 'cvml', 
> 'excel-macros@googlegroups.com');>
> .
> To unsubscribe from this group, send email to
> excel-macros+unsubscr...@googlegroups.com <javascript:_e({}, 'cvml',
> 'excel-macros%2bunsubscr...@googlegroups.com');>.
> Visit this group at http://groups.google.com/group/excel-macros?hl=en.
>
>
>


-- 
Regards
David Grugeon

-- 
Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To post to this group, send email to excel-macros@googlegroups.com.
To unsubscribe from this group, send email to 
excel-macros+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros?hl=en.


Reply via email to