+ Reply to Thread
Results 1 to 4 of 4

VB programming query - cell content interrogation

Hybrid View

  1. #1
    Registered User
    Join Date
    08-01-2011
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    2

    VB programming query - cell content interrogation

    hi

    i need to create an excel macro that checks the contents of an entire column in sheet 1 against the specific contents of a reference cell in sheet 2 and if it finds any word entries that are the same then code an adjacent cell in a second column on sheet 1 with a particular reference taken from a cell on sheet 2. this needs to repeated for multiple reference cells with different content in each.

    i.e..on the attached example query1. if a2:a910 sheet 1 contains any of the entries in c1 sheet 2 then enter the contents of a2 sheet 2 into cell b2 sheet 1.

    any help would be appreciated.
    Attached Files Attached Files
    Last edited by nealc33; 08-01-2011 at 10:37 AM. Reason: advice

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,213

    Re: VB programming query

    Welcome to the forum nealc33.

    Please take a few moments to read the forum rules and amend the title of your thread to something more specific and searchable (again, see the rules)

    You will also be more likely to get a constructive and appropriate answer if you upload a sample workbook with some typical data.

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    08-01-2011
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: VB programming query - cell content interrogation

    Is there any advice or guidance on my code?

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,213

    Re: VB programming query - cell content interrogation

    Advice and guidance on what code?

    If you're asking how I would code it, I'm afraid I have no idea. I can't actually see any relationship between the defects and the Task Descriptions.

    I think you'll need to provide a number of examples of what you would expect to be returned and why. For example, task code xxnnnn returned because defect has word "aaaa" and matches the same word in task description in cell "xx" on sheet 2

    Regards

+ 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