+ Reply to Thread
Results 1 to 4 of 4

Macro taking a lot of time

  1. #1
    Registered User
    Join Date
    02-10-2011
    Location
    NJ
    MS-Off Ver
    Excel 2007
    Posts
    2

    Macro taking a lot of time

    Guys,

    I have the following code that is taking a lot of time. I am a novice in vba and built this code with the help of Google. Please help me to optimize this.
    Thanks.


    Please Login or Register  to view this content.
    Last edited by anumolud; 02-10-2011 at 07:24 AM. Reason: add code tags for newbie PM OP warning

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,457

    Re: Macro taking a lot of time

    It would help if you posted a sample workbook with some typical data,

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Valued Forum Contributor
    Join Date
    09-21-2003
    Location
    British Columbia , Canada
    MS-Off Ver
    03,07,10,13
    Posts
    727

    Re: Macro taking a lot of time

    hint : don't use "Select or Selection" in your code , just to reference cells ... this is very costly and leads to mistakes. "Select" means you actually going and ummm touching each cell .

    Please Login or Register  to view this content.
    Last edited by nimrod; 02-10-2011 at 03:18 AM.

  4. #4
    Registered User
    Join Date
    02-10-2011
    Location
    NJ
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Macro taking a lot of time

    nimrod:

    that worked like a charm. it takes only a sec now. thank you so much.
    though i don't completely understand it, it just works great .

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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