+ Reply to Thread
Results 1 to 3 of 3

Copied VBA code won't work.

  1. #1
    Registered User
    Join Date
    07-26-2010
    Location
    NL
    MS-Off Ver
    Excel 2016
    Posts
    74

    Copied VBA code won't work.

    Hello,

    With the help of this forum i created a piece of code that searches, matches and copies values. Its working fine. here's the code:


    Please Login or Register  to view this content.
    Now I'm trying to copy and change the code so an other value is searched, here is the code I created.


    Please Login or Register  to view this content.
    The code is working fine, the first item is found, matched and placed in the right cell, only the code give's an error at the end "Loop While c.Address <> firstaddress"

    Does anyone has got an idea? the code is working in the first part but not in the second.

    Thanks in advance

    ABBOV
    Last edited by ABBOV; 10-12-2010 at 05:48 AM.

  2. #2
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Copied VBA code won't work.

    Using advancedfilter would have the same result with a minimum of VBA-code

    Please Login or Register  to view this content.



  3. #3
    Registered User
    Join Date
    07-26-2010
    Location
    NL
    MS-Off Ver
    Excel 2016
    Posts
    74

    Re: Copied VBA code won't work.

    It's works now, missed a tiny peace of code, found it out myself

+ 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