+ Reply to Thread
Results 1 to 3 of 3

Find contents then paste Column

  1. #1
    Registered User
    Join Date
    05-02-2009
    Location
    New, New York
    MS-Off Ver
    Excel 2003
    Posts
    31

    Find contents then paste Column

    My Objective is to look for the text G62 in Column G. If Column G has text G62 anywhere in the cell and the same row of Column W has data I’d like to copy that row of Column W and paste its contents into the same row of Column Z. The problem I am having is when I run my macro it does not produce the desired result nor do I receive an error message to indicate anything is wrong (the text G62 does exist in Column G and Column W has data). If you can help me solve my problem, thank you.

    Please Login or Register  to view this content.
    Last edited by EJensen; 04-23-2010 at 03:02 PM. Reason: SOLVED

  2. #2
    Valued Forum Contributor mdbct's Avatar
    Join Date
    11-11-2005
    Location
    CT
    MS-Off Ver
    2003 & 2007
    Posts
    848

    Re: Find contents G62 then paste Column W to Column Z

    This line is looking for a text entry that starts with G62 and end with "
    Please Login or Register  to view this content.
    Valid entries would be
    G62 SOME DATA "
    G62"
    G62 BLAH "

    INVALID ENTRIES
    G62
    g62
    DATA G62

    If you want to check for G62 anywhere in the cells use:
    Please Login or Register  to view this content.
    I would also suggest not using COLUMN and ROW as variable names since they are properties within VBA. It won't necessarily hurt anything, but it can become confusing when debugging.

  3. #3
    Registered User
    Join Date
    05-02-2009
    Location
    New, New York
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: Find contents G62 then paste Column W to Column Z

    It works well now! Thank you for explaning things to me, I appreciate the help.

+ 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