Results 1 to 20 of 72

Thread: Excel Slow performance

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #11
    VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,709
    Location
    ?
            For jj = 2 To UBound(sp) 
                If sn(j, 3) = sp(jj, 1) Then Exit For 
            Next
    You use that construct twice:
            For jj = 2 To UBound(sp) 
                If sn(j, 1) = sp(jj, 16) Then exit For 
            Next

    since it is so simple to read

    I had 4 questions about one line of your code. After reading the help files and rereading that line, (and some of the preceding ones,) many, many times, I answered all of them

    Don't get me wrong, I've "stolen" more of your code than any one else's, but the first thing I do is Ctrl+H every variable.
    Last edited by SamT; 09-12-2017 at 07:42 AM.
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

Posting Permissions

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