Consulting

Results 1 to 6 of 6

Thread: My Macro sits and spins

  1. #1
    VBAX Regular
    Joined
    Sep 2015
    Location
    East Texas
    Posts
    87
    Location

    My Macro sits and spins

    I have this same Macro working 100% in other books that I am using. The exception between these book is that the others utilize I2:O101 and this one I am wanting to use I2:N101. When I place a Game # in Q5 to do a reset back to a specific Game # the Macro sits and spins until I finally hit escape or sometimes have to X out of it and then it, i get a range error:


    Range Failed.jpg


    When I go to debug, I get this:

    Debug.jpg

    goes to debug and says this:

    Can someone help me fix this?

    Thank you




    Attached Files Attached Files

  2. #2
    VBAX Regular
    Joined
    Nov 2011
    Location
    Ufa
    Posts
    75
    Location
    There are a lot of conditional formatting rules, which were formed due to the copy range.
    Try removing extra CF and refrain from copying (insert only values).

  3. #3
    Testing more efficiently:

    if ([Q5]-1)\50<>0 then exit sub

  4. #4
    VBAX Regular
    Joined
    Sep 2015
    Location
    East Texas
    Posts
    87
    Location
    I've actually removed all the CF except the Gray/green , Red/yellow number cells on another test sheet and it dies the same thing.

    It's suppose to copy and paste to whichever Game number I place in Q5. So if all cells are full to row 2 Game 50 and I put 48 in Q5 it should copy or cut I2:N101 and paste the numbers row 4 leaving ? In rows 2 and 3. The numbers in row 99 and 100'drop off I hope this makes sense

  5. #5
    VBAX Regular
    Joined
    Sep 2015
    Location
    East Texas
    Posts
    87
    Location
    @snb,

    are you suggesting I replace this code in place of another in mine?

  6. #6
    Only to replace


    If isempty(range("Q5") then
     
       and all the code between this   If  .... End if
    
    End If

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •