+ Reply to Thread
Results 1 to 7 of 7

Translating records to right cells based on two criteria

  1. #1
    Registered User
    Join Date
    10-10-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    5

    Translating records to right cells based on two criteria

    Hello all!

    I'm quite new to VBA though I can manage the basics.
    I've stumbled on the next issue..

    The following code does what I want it to do (translating the record to the rightly positioned Cell in a overview) though it's really slow.

    The code:
    Please Login or Register  to view this content.
    How it works:
    It searches for the given personnelnumber from a displaysheet.
    Next, it tries to find a match in the recordsheet and if it exists copy the information to the matching date cell.

    In the displaysheet:
    Verticalle I've stored the personnelnumbers and horizontalle the dates.

    The UID from de fieldrecord is based on the personnelnumber combined with the date in Long format.

    I sincerely hope someone can give me advice how to speedup this process!

  2. #2
    Valued Forum Contributor
    Join Date
    11-15-2008
    Location
    ph
    MS-Off Ver
    2007/2010/2016
    Posts
    479

    Re: Translating records to right cells based on two criteria

    Hi -

    If you can attach the actual file then we can help.

    Sounds like it can be done in one loop.

    Regards,
    Event

  3. #3
    Registered User
    Join Date
    10-10-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Translating records to right cells based on two criteria

    Will do!

    Making a blank copy as we speak, deleting sensitive information..

  4. #4
    Registered User
    Join Date
    10-10-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Translating records to right cells based on two criteria

    See my attachment for the example worksheet.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-10-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Translating records to right cells based on two criteria

    Anyone?

  6. #6
    Valued Forum Contributor
    Join Date
    11-15-2008
    Location
    ph
    MS-Off Ver
    2007/2010/2016
    Posts
    479

    Re: Translating records to right cells based on two criteria

    Hi -

    See if this makes any difference.
    Please Login or Register  to view this content.
    Regards,
    Event

  7. #7
    Registered User
    Join Date
    10-10-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Translating records to right cells based on two criteria

    Must say, that your code works faster than mine. Great!
    It's a huge improvement compared to mine

    A little edit (for autom.) using lastlow and lastcolumn:

    Please Login or Register  to view this content.
    Last edited by Grimmed; 12-07-2012 at 06:05 AM.

+ 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