+ Reply to Thread
Results 1 to 4 of 4

Find and Move Help Please

  1. #1
    Registered User
    Join Date
    04-10-2014
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    39

    Find and Move Help Please

    Hi!
    I'm trying to write a loop that will look at Row 1, check each cell until it finds the value "Textbox55".
    When the Value is found it will copy that column to sheet2 column B.

    Here is the rough version of my code so far..


    Please Login or Register  to view this content.
    Last edited by learner99; 07-25-2014 at 02:25 PM.

  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 and Move Help Please

    Hello learner99,

    You don't need loops to do this in VBA. Here is the code to do it. This assumes your source is Sheet1 and the destination is Sheet2. The header column is copied to Sheet2 column "B".

    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
    Registered User
    Join Date
    04-10-2014
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    39

    Thumbs up Re: Find and Move Help Please

    That was perfect! Thank you.
    I had to adjust the code alittle to get it to work.
    Here is the code:
    Please Login or Register  to view this content.
    Thank you again!!!!

  4. #4
    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 and Move Help Please

    Hello learner99,


    You're welcome. I am glad the code was clear enough you could modify it for your needs.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Find Url If Missing Move On
    By timbo1957 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-14-2013, 04:09 AM
  2. VB for Find and Move
    By cladkins in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-12-2013, 02:43 AM
  3. [SOLVED] Find a value, copy the row, move to next row.
    By OSUBigToe in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 04-10-2013, 11:40 AM
  4. find and move
    By OnziTam in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-24-2006, 08:16 PM
  5. [SOLVED] Macro - Find a value and then move down
    By Phil Osman in forum Excel General
    Replies: 4
    Last Post: 08-10-2005, 09:05 AM

Tags for this Thread

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