+ Reply to Thread
Results 1 to 2 of 2

? macro slows when other wkshts open

  1. #1
    Registered User
    Join Date
    11-27-2006
    Posts
    3

    ? macro slows when other wkshts open

    I have a macro that runs well when it is the only xl file open. However, if there are other xl files open it slows down dramatically, but only when those other xl files have macros in them as well.

    Essentially what my macro does is copy several sheets to the beginning of the file and moves those sheets to a new file.

    Where the macro slows down is during the move. Sometimes after running it several times. I get an error that says Move method of sheets class failed.

    Any idea what would cause this?

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by drun
    I have a macro that runs well when it is the only xl file open. However, if there are other xl files open it slows down dramatically, but only when those other xl files have macros in them as well.

    Essentially what my macro does is copy several sheets to the beginning of the file and moves those sheets to a new file.

    Where the macro slows down is during the move. Sometimes after running it several times. I get an error that says Move method of sheets class failed.

    Any idea what would cause this?
    Todays 'Word of the day is 'Resources'.

    How large are the workbooks involved, and with how much 'lookup' or link data?
    Do you have a fragmented disc, are you short of memory.

    Can you Copy the sheets directly to the new workbook? - this would minimise the resources needed, (record a macro and do the Copy etc to get the code)

    Any other clues?
    ---
    Si fractum non sit, noli id reficere.

+ 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