+ Reply to Thread
Results 1 to 10 of 10

Macro doing activities twice.

  1. #1
    Registered User
    Join Date
    11-30-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    31

    Macro doing activities twice.

    Hello Everyone,

    I have buid a code to pull counts from other files and it takes some time. While to do this i want to show User form and i have added it in my code and it is displaying it. But the problem is Macro is doing the activities twice. and i not getting where i am worng. Please help...
    PFA for the same Sample.xls

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Macro doing activities twice.

    Your sample has a password on the vba project.

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Macro doing activities twice.

    Please supply the VBA project password


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  4. #4
    Registered User
    Join Date
    11-30-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: Macro doing activities twice.

    Opss Sorry... It's Invincible

  5. #5
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Macro doing activities twice.

    Please Login or Register  to view this content.
    Looking through your code, that is how I would do it. Not sure if it will fix your problem..

  6. #6
    Registered User
    Join Date
    11-30-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: Macro doing activities twice.

    Hi yudlugar,

    Thanks for your help, but the above code is not working fine, It is selecting First file from folder and doing activities..... but not going on next file..
    and the macro is not stopping it is contineously selting first file and so on.... and also the form is displaying in white color...

  7. #7
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Macro doing activities twice.

    Oooops, I forgot an important part!
    Please Login or Register  to view this content.
    Last edited by ragulduy; 12-20-2013 at 08:37 AM.

  8. #8
    Registered User
    Join Date
    11-30-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: Macro doing activities twice.

    Hi yudlugar,

    The Code is working fine, Except Userform... it is showing White coloured form.... and when i use Doevents then it it showing the from but same issue as my coding has.... it is running twice.....

  9. #9
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Macro doing activities twice.

    You have "corefunction" written in your userform_activate event. So when you load the userform it will repeat the code again!

    Use do events and delete the userform_activate code from the userform code module.

  10. #10
    Registered User
    Join Date
    11-30-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: Macro doing activities twice.

    Oh.... !!! Thanks..... Now working perfect...!!

+ 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. Tracking time for activities.
    By martianrebel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-23-2013, 05:53 PM
  2. Mapping activities to names
    By Tommy in forum Excel General
    Replies: 4
    Last Post: 02-18-2010, 09:50 AM
  3. Chart XY TIME - Activities like GANTT
    By riccardo79 in forum Excel General
    Replies: 16
    Last Post: 01-06-2009, 03:00 PM
  4. Activities? Schimivities!
    By username in forum Excel General
    Replies: 0
    Last Post: 05-23-2005, 02:06 PM
  5. [SOLVED] Network activities while runnung macros
    By augustus in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-08-2005, 11:06 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