+ Reply to Thread
Results 1 to 13 of 13

Can't get macro to move text from Column G to Column H without deleting existing text in H

  1. #1
    Registered User
    Join Date
    01-06-2014
    Location
    Tulsa, OK USA
    MS-Off Ver
    Excel 2007
    Posts
    24

    Smile Can't get macro to move text from Column G to Column H without deleting existing text in H

    I am trying to record a macro that will allow me to move text in Column G to Column H without losing the existing text in Column H. Also, I want to do this through out my worksheet.
    Thanks,
    Cliff

  2. #2
    Registered User
    Join Date
    01-06-2014
    Location
    Brazil
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Can't get macro to move text from Column G to Column H without deleting existing text

    Not sure if I understood your question, but what are you trying to do is simple copy and paste column G to column H?

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-06-2014
    Location
    Tulsa, OK USA
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Can't get macro to move text from Column G to Column H without deleting existing text

    Thanks for your replay. I am trying to move text to the next column, but when I paste it to the 2nd column it deletes my existing text in column H.

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Can't get macro to move text from Column G to Column H without deleting existing text

    Are you trying to concatenate?

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-06-2014
    Location
    Tulsa, OK USA
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Can't get macro to move text from Column G to Column H without deleting existing text

    Hi John, sorry I am just getting back to you today, again. I tried your macro and as I told you earlier it worked, but the macro did it throughout the whole workbook. I thought I wanted to do each row one at a time. After I thought about it, what you did may be a better idea than my original hope. I did noticed that the text that moved to Column H from Column G was at the bottom of the row below the existing text. My information that I am transferring is by date and if I could put the latest text from G to go the top of H that would be even better since it is dated (my text that I want to transfer looks like this: 1-6-14 WILSON STEAM BLX 105S 3/8-N ENDURO PRO/SENS #65. There maybe multiple lines in Column H just like this one but earlier dates.

  6. #6
    Registered User
    Join Date
    01-06-2014
    Location
    Tulsa, OK USA
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Can't get macro to move text from Column G to Column H without deleting existing text

    Amigosu, thanks so much again for your help. I tried and worked a little with your macro and it worked. Thanks. It moved all text from Column G to Column H. Initially I was thinking of doing it on each row, but like your idea better. Is there a way to put the text that I move from Column G to H at the top of my text not at the bottom of the Column H text? My text that I have in Column G looks like this: 1-6-14 WILSON STEAM BLX 3/8-N ENDURO PRO/SENS #65. Since I have the date at the beginning I would like to have the latest date at the top of Column H then descend to earlier dates.

  7. #7
    Registered User
    Join Date
    01-06-2014
    Location
    Tulsa, OK USA
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Can't get macro to move text from Column G to Column H without deleting existing text

    Amigosu, thanks so much again for your help. I tried and worked a little with your macro and it worked. Thanks. It moved all text from Column G to Column H. Initially I was thinking of doing it on each row, but like your idea better. Is there a way to put the text that I move from Column G to H at the top of my text not at the bottom of the Column H text? My text that I have in Column G looks like this: 1-6-14 WILSON STEAM BLX 3/8-N ENDURO PRO/SENS #65. Since I have the date at the beginning I would like to have the latest date at the top of Column H then descend to earlier dates.

  8. #8
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Can't get macro to move text from Column G to Column H without deleting existing text

    Quote Originally Posted by cliffdprice View Post
    Hi John, sorry I am just getting back to you today, again. I tried your macro and as I told you earlier it worked, but the macro did it throughout the whole workbook. I thought I wanted to do each row one at a time. After I thought about it, what you did may be a better idea than my original hope. I did noticed that the text that moved to Column H from Column G was at the bottom of the row below the existing text. My information that I am transferring is by date and if I could put the latest text from G to go the top of H that would be even better since it is dated (my text that I want to transfer looks like this: 1-6-14 WILSON STEAM BLX 105S 3/8-N ENDURO PRO/SENS #65. There maybe multiple lines in Column H just like this one but earlier dates.
    Maybe:

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    01-06-2014
    Location
    Tulsa, OK USA
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Can't get macro to move text from Column G to Column H without deleting existing text

    Hi John, thank so very much. That macro works. It put the most recent text to the top of the column H. What if I wanted to use a macro to just move 1 row at a time instead of the whole workbook. Is that possible? Also, if it is not too much trouble I would like each of my Column H text rows to look like this:
    1-7-14 wilson steam blx 99s-u enduro pro #57
    1-5-14 bab ap dr 100 -u enduro pro/sens #58
    But now it looks like the following 1-7-14 wilson steam blx 99s-u enduro pro #571-5-14 bab ap dr 100 -u enduro pro/sens #58
    Thanks again,

  10. #10
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Can't get macro to move text from Column G to Column H without deleting existing text

    This should separate the values

    Please Login or Register  to view this content.
    This will operate on the activecell only? Not sure what you require for 1 row at a time

    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    01-06-2014
    Location
    Tulsa, OK USA
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Can't get macro to move text from Column G to Column H without deleting existing text

    Hi John, Thanks for replying, again. The question you asked about why I would want to move data in just 1 row at a time is because in 1 worksheet, I have data in a row until someone returns my test racket. When they return the racket I can then move the text to the next column. This way I know what rackets are out and when they are due back. Also, thanks for the macro to separate values. What I would like to do is put each date first and on just 1 line. Is that possible? Thank you so much for all your help.

  12. #12
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Can't get macro to move text from Column G to Column H without deleting existing text

    Quote Originally Posted by cliffdprice View Post
    Hi John, Thanks for replying, again. The question you asked about why I would want to move data in just 1 row at a time is because in 1 worksheet, I have data in a row until someone returns my test racket. When they return the racket I can then move the text to the next column. This way I know what rackets are out and when they are due back. Also, thanks for the macro to separate values. What I would like to do is put each date first and on just 1 line. Is that possible? Thank you so much for all your help.
    Cliff:

    Can you attach a sample with some data (before and after) results to test on?

  13. #13
    Registered User
    Join Date
    01-06-2014
    Location
    Tulsa, OK USA
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Can't get macro to move text from Column G to Column H without deleting existing text

    "I delete this data when racket is returned in column "F"
    Date to be returned : 1-8-14 Wed 3pm"
    "This is Column ""G"" in my workbook. I will move this text to ""H"" when person brings back this racket. I will then delete the date it is due back
    1-7-14 WILSON 6.1 95S"
    "This is the way I would like the data arranged. I want to keep all historical text in this column which is ""H"".
    9-28-10 BABOLAT PURE DRIVE GT 100,
    9-27-10 BABOLAT PURE DRIVE GT 100, PRINCE EXO BLACK 100 ,
    4-9-10 BAB PURE DRIVE GT 100 & BAB AERO PRO DR 100 OLD MODEL,
    4-2-10 WILSON 6.1 95 & WILSON K PRO OPEN & BABOLAT AEROPRO DR GT
    3-26-10 WILSON 6.1 BLX 95 AND WILSON K TOUR 95"

    "This is the way it is currently arranged"
    5-22-10 PRINCE EXO RED 105 3-18-10 WILSON K FOUR FX 107, PRINCE EXO RED 105, PRINCE EXO WHITE 100 08-1-09 WILSON K SIX-ONE 95 8-10-10 PRINCE EXO SILVER 118 7-20-10 WILSON CIRRUS ONE, HEAD THREE STAR, BABOLAT Y 112 6-14-08 WILSON K BLADE 98 & HEAD MICROGEL EXTREME 100 07-11-06 PRINCE O3 SILVER 118 11-29-05 WILSON nFORCE 125 7-28-00 WILSON KTOUR TEAM FX11-5-04 WILSON N1 OS (DID NOT HAVE DEMO REC. GAVE CREDIT) 6-17-06 WILSON NPRO SURGE 100-USED $200 FOR 89.99 & NPRO OPEN 100 6-12-04 WILSON TRIAD 2 OS 6-11-04 WILSON TRIAD T 3 OS & WILSON H 4 OS 6/20/00 WILSON 3.3 HC STRETCH OS 7-17-99 WILSON 4.3 HYPERCARBON OS 5/15/99 WILSON 2.3 HC STRETCH OS 4-13-99 WILSON 3.0 TI STRETCH 8-22-98 WILSON TI 3.2 OS 5-28-98 wilson TITANIUM 3.0 STRETCH
    Last edited by cliffdprice; 01-09-2014 at 02:17 PM. Reason: just to update and make it easier to read

+ 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] Deleting text from column has mix of number and text
    By TallOne in forum Excel General
    Replies: 4
    Last Post: 05-21-2013, 05:25 AM
  2. Replies: 8
    Last Post: 11-12-2012, 02:39 PM
  3. [SOLVED] How do I add text to existing text in a whole column in Excel?
    By Robin Laverick in forum Excel General
    Replies: 3
    Last Post: 07-08-2006, 12:10 AM
  4. [SOLVED] How to add text to all existing records in one column?
    By usmleboy in forum Excel General
    Replies: 4
    Last Post: 01-06-2006, 05:10 PM
  5. adding extra text into an existing column
    By Zach in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 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