+ Reply to Thread
Results 1 to 3 of 3

Macros running twice - why

  1. #1
    Registered User
    Join Date
    12-31-2008
    Location
    Chester, CA
    MS-Off Ver
    Excel 2007
    Posts
    20

    Macros running twice - why

    Hi - I have been working on some Macros. I am compiling a macro that runs other macros. I have two noticeable problems.

    1 - My SaveAs macro runs fine by itself. But when called or ran by another macro, (which calls more than one macro) the SaveAs macro it stops.

    2- Many of my macros, when ran by another macro (which runs more than one macro) cycles through twice.

    My specific question is about no. 2 and the following are the individual macros and the macro that runs them.

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    This is the macro that runs them -

    Please Login or Register  to view this content.
    Thanks for any help - Jim A
    Attached Files Attached Files
    Last edited by jayers; 02-11-2009 at 09:17 PM. Reason: needed to change attachment

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,482

    Re: Macros running twice - why

    Have you tried adding a break point in the SaveAs routine and then checking the call stack to see where and why the routine is being run?
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    12-31-2008
    Location
    Chester, CA
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Macros running twice - why

    Quote Originally Posted by Andy Pope View Post
    Have you tried adding a break point in the SaveAs routine and then checking the call stack to see where and why the routine is being run?
    I through in
    Please Login or Register  to view this content.
    On the SaveAS macro, it didn't report anything - it just stopped.

    Thanks for any help - Jim A

+ 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