Consulting

Results 1 to 3 of 3

Thread: Solved: Comparing 2 Sheets in a Workbook minor bug

  1. #1
    VBAX Contributor
    Joined
    Feb 2007
    Posts
    126
    Location

    Solved: Comparing 2 Sheets in a Workbook minor bug

    Ladies & Gents,

    Some minor bug in my script except can't quite figure out what it is...

    I am tring to compare Column A in sheet1 with column A in sheet2 and whatever is not found in sheet2's Column A should be outputted to sheet3 column A at the moment it starts ok, but does not do next for some reason

    Your help as always is much appreciated!!!!!!

    Thanks a lot

  2. #2
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Hi Itipu,
    Minor bug as you said. You're writing all your data to the same cell A1.

    Try
    [vba]If rngFind Is Nothing Then
    rngCell.EntireRow.Copy sh.Cells(Rows.Count, 1).End(xlUp).Offset(1)
    End If
    [/vba]
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  3. #3
    VBAX Contributor
    Joined
    Feb 2007
    Posts
    126
    Location

    Thanks!!!!!!!

    Thanks

Posting Permissions

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