+ Reply to Thread
Results 1 to 7 of 7

Macro working very slow when sheet switch

  1. #1
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Post Macro working very slow when sheet switch

    hello
    i m using this macro to filter data and sort automatically........

    macro works when i change the sheet but it takes lots of time to sort and filter the data. i want to make it fast as possible.
    need help
    thanx

    code :
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor
    Join Date
    07-04-2012
    Location
    Cape Town, RSA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    1,050

    Re: Macro working very slow when sheet switch

    Do you run the macro on Sheet1 as well as on sheet "TO."
    What exactly do you mean when you say "When I change the sheet"?
    Regards,
    Rudi

  3. #3
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: Macro working very slow when sheet switch

    What exactly do you mean when you say "When I change the sheet"?
    I have Two worksheets ("ENTRY"), ("TO.")
    if i m working on sheets.("ENTRY") when i go to sheets.("TO.") then this code works

  4. #4
    Valued Forum Contributor
    Join Date
    07-04-2012
    Location
    Cape Town, RSA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    1,050

    Re: Macro working very slow when sheet switch

    So you want the code to work also on sheet "ENTRY"?

  5. #5
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: Macro working very slow when sheet switch

    nope RudiS

    i want only work faster to this code :

    Please Login or Register  to view this content.

  6. #6
    Valued Forum Contributor
    Join Date
    07-04-2012
    Location
    Cape Town, RSA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    1,050

    Re: Macro working very slow when sheet switch

    OK...

    try this code. Replace your current code with this below:

    Please Login or Register  to view this content.

  7. #7
    Valued Forum Contributor
    Join Date
    07-04-2012
    Location
    Cape Town, RSA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    1,050

    Re: Macro working very slow when sheet switch

    Or try this that also switches off screen updating and other event handlers...

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Macro to switch to the previous selected sheet
    By thop0001 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-02-2013, 12:52 AM
  2. Macro working very slow in Excel 2007
    By kapil in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-29-2012, 04:41 AM
  3. [SOLVED] Apply Macro and switch to next sheet
    By alvesfr in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-29-2012, 05:56 AM
  4. Macro switch sheet based off selection
    By ballin220 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-10-2008, 05:47 PM
  5. Trying to switch to a different sheet in a macro?
    By BigDave in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-14-2005, 01:44 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1