+ Reply to Thread
Results 1 to 3 of 3

Find value and copy value from another column

  1. #1
    Forum Contributor
    Join Date
    12-26-2006
    Posts
    189

    Find value and copy value from another column

    Hi,

    I have the following situation:

    I need to make a string search in column "C", but only starting in row 10.
    Everytime the string "x" is founded in that column, i need to copy the value of the column "E" of that same row and copy it in WORD.
    I can define a row limit for the search, for example from "C10:C100".

    Can anyone help me with the code?
    THANKS
    Last edited by mqdias; 09-01-2010 at 04:30 AM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Find value and copy value from another column

    Hello mqdias,

    This macro will open a new Word document and copy each cell in column "E" of the ActiveSheet if the adjacent cell in column "C" is an "x". Copy this code into a standard VBA Module.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Contributor
    Join Date
    12-26-2006
    Posts
    189

    Re: Find value and copy value from another column

    Dear Leath,

    Thank you so much!!!
    I was trying to do it by myself. I was able to open Word and copy text to there, but i was facing many problems creating a loop session that worked perfectly.
    Your post arrived at the right time!

    Thank you so much!!!
    It worked just fine at the first!!

+ 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