+ Reply to Thread
Results 1 to 3 of 3

Copying text from cells until text in a certain cell changes

  1. #1
    Registered User
    Join Date
    09-22-2017
    Location
    USA
    MS-Off Ver
    365
    Posts
    2

    Copying text from cells until text in a certain cell changes

    Hello Everyone,

    I am glad to be apart of this forum! I have a moderate amount of experience with C# but not VBA. What I am trying to do with a macro is copy text from column D if it has the word Van in it. If it does have the word Van in it, I am trying to paste the text in this cell in column A. Until however, another cell in column D has the contains the word Van in it. Which from here new text will be copied starting off on the row.

    I know that this will need to contain a loop of some sort. Can anyone help me out with my issue?



    Question.PNG
    Attached Files Attached Files
    Last edited by zthearcnlc; 09-22-2017 at 03:52 PM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525

    Re: Copying text from cells until text in a certain cell changes

    Attaching a sample workbook enables others to work on your problem:

    To attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include BEFORE/AFTER sheets if needed to show the process you're trying to complete or automate. Remember to desensitize the data.

    Click on GO ADVANCED and click "manage attachments" to open the upload window.


    To add a file to a post

  3. #3
    Registered User
    Join Date
    09-22-2017
    Location
    USA
    MS-Off Ver
    365
    Posts
    2

    Re: Copying text from cells until text in a certain cell changes

    I just added the xlsx davesexcel

+ 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. [SOLVED] Copying ranges of cells defined by those cell's text values
    By GabrielJames in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-29-2017, 06:13 PM
  2. Replies: 1
    Last Post: 06-04-2014, 07:15 AM
  3. Code for excel copying multiple cells in to one cell with ; symbol in-between text.
    By summerso1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-27-2014, 09:31 AM
  4. Formula to identify part of a text in cell from range of cells & insert adjacent cell text
    By Novicebutnotforlong in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 11-19-2013, 02:11 AM
  5. Copying Text from 1 cell and inserting into the text of another
    By brandnewday10 in forum Excel General
    Replies: 2
    Last Post: 04-19-2011, 05:20 AM
  6. Copying text from a cell and splitting the text in to individual cell
    By mvel_sky in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-30-2010, 05:58 AM
  7. Copying the text in a cell to a text box
    By ersinergun in forum Excel General
    Replies: 1
    Last Post: 02-07-2008, 02:40 PM

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