+ Reply to Thread
Results 1 to 4 of 4

Macro stops responding...

Hybrid View

wayliff Macro stops responding... 01-15-2007, 03:21 PM
rylo Hi Sounds like you either... 01-15-2007, 09:30 PM
wayliff I have tested it with a... 01-16-2007, 04:11 PM
rylo Couple of other thoughts. ... 01-17-2007, 09:22 PM
  1. #1
    Registered User
    Join Date
    12-22-2005
    Location
    Sarasota, FL
    Posts
    26

    Macro stops responding...

    I have a macro that does some routines for me. I have not used it for about 6 months in the past it would take some time (very slow) to run through this part of the code but now it simply does not seem to continue. I can let it run for 20 mins and does nothing...i am hoping for some insight on how to resolve this issue.

    Sheets("spreadsheet.xls").Select
    lastrowm = Sheets("tab").Range("A6").End(xlDown).Row
    Range("A5:X" & lastrowm).Select
    Selection.Copy
    Windows("spreadsheet2.xls").Activate
    Sheets("tab").Select
    Range("A5").Select
    ActiveSheet.Paste

    When the macro executes PASTE it just sits there. Not sure why.

    In the meantime I have been placing a break point on Range("A5").Select and I manually paste the stuff and then i continue...

    This makes no sense to me.

    Help appreciated

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    Sounds like you either have some heavy processing formulas, or links to closed files in the data you are copying. Or perhaps there are links in the copy area that point to other sheets in the source file, and it is taking a while to process when they are copied across.

    Can you provide more detail on the type of data in the range being copied?

  3. #3
    Registered User
    Join Date
    12-22-2005
    Location
    Sarasota, FL
    Posts
    26
    I have tested it with a single row of data or many (1200) and it takes the same amount of time. (Once done manually it is almost instantaneous)
    There aren't any formulas at the moment it is being copied since everything has been pasted as a value and there are not references to other sheets or workbooks.

    The type of data is alphanumeric...

    From Columns A to O.

    Col A - Three Letters
    Col B - Five Digit Number
    Col C - Nine Digit Number
    Col D - Two Digit Alpha Value
    Col E - Julian Date
    Col F - Three to Four Digit Number
    Col G - Alphanumeric field, varies in size but never exceeds 10 characters
    Col H - Same as Col F
    Col I - Date
    Col J - Text of about 3 to 10 characters
    Col K - Blank or the word Freeze
    Col L - Text from 3 to 10 characters
    Col M - Text from blank to 255 characters. Generally not many.
    Col N - Same as M.
    Col O - Same as M.

  4. #4
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Couple of other thoughts.

    1) How many other files do you have open, and do they have much activity.
    2) Does turning off the calculation speed things up.
    3) Are there any event macros that are being fired by the copy / paste.


    rylo

+ 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