+ Reply to Thread
Results 1 to 8 of 8

Copy Paste Cell Text

  1. #1
    Forum Contributor
    Join Date
    04-23-2007
    Location
    Texas
    Posts
    417

    Copy Paste Cell Text

    Hello!
    I am looking at column E. "_Notes" is the only text in column E.

    If other text is found in columns to the right of E, that text needs to be copied to the next row down.
    Attached Files Attached Files
    Last edited by Tortus; 03-11-2020 at 02:32 PM.
    If we all use our Minds our Heads and our Brains NO TELLING what we could come up with!!

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Copy Paste Cell Text

    Hi Tortus,

    What if there is already text in "the next row down? Do you want to copy over it? Do you want the answer to overwrite other text that is already there? In a VBA solution I'd use For Next loop and start from the bottom and work to the top.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Contributor
    Join Date
    04-23-2007
    Location
    Texas
    Posts
    417

    Re: Copy Paste Cell Text

    Overwrite what is already there for this exercise. Thanks!

  4. #4
    Forum Contributor
    Join Date
    04-23-2007
    Location
    Texas
    Posts
    417

    Re: Copy Paste Cell Text

    "looking down a long empty hallway" Hello!

  5. #5
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Copy Paste Cell Text

    Hey Tortus,

    This feels a lot like a homework assignment.... I'm west of you so I just got my second cup or joe. Good that you post today as that puts your question up on the stack and I can find it. I'll get right to your problem.

  6. #6
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Copy Paste Cell Text

    OK - 2 cups of coffee and my VBA skills seem to work... Here is the code.
    Please Login or Register  to view this content.
    I'm pretty old and like the Cells(r,c) notation because I can put quotes around the column letter.
    I also like to name my variables with meaningful names instead of i,j,k so I know what they are down in the code. I wish other programmers would do this too.
    Some others like to use For Each type of loop but I'm old and like row and column NUMBERS instead.

    Good luck on your assignment.

  7. #7
    Forum Contributor
    Join Date
    04-23-2007
    Location
    Texas
    Posts
    417

    Re: Copy Paste Cell Text

    Thanks, let me give it a try and I'll get right back with you. Hopefully you are safe from that virus stuff. Hot coffee should kill it!

  8. #8
    Forum Contributor
    Join Date
    04-23-2007
    Location
    Texas
    Posts
    417

    Re: Copy Paste Cell Text

    Works great, thank you very much! Stay safe and healthy!

+ 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 a cell that contains text, then copy/paste next active cell in another sheet
    By Exceloof in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-15-2019, 02:23 PM
  2. [SOLVED] When a certain text is in cell, copy paste in cells left or right of the text
    By TAMMY32 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-28-2016, 05:23 PM
  3. [SOLVED] if cell contains text, then copy/paste on the next one
    By extremis in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-30-2013, 10:43 AM
  4. Macro to Copy Date in Active Cell and Re-Paste into Same Cell as Text?
    By cheezsaus in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2013, 07:10 PM
  5. Replies: 0
    Last Post: 11-06-2012, 06:44 PM
  6. Copy and Paste text from a cell to a text box
    By AnthonyJ in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-07-2009, 04:18 AM
  7. Copy data from cell in one worksheet, add text, and paste to cell in another sheet
    By drewship in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-14-2009, 01:27 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