Macro Partial Cell Copy and Paste

TikeMyson

New Member
Joined
Nov 16, 2017
Messages
1
I've looked all over, but I can't find a solution for my problem.

When recording a macro, how do you copy text from one cell, and append/paste it after the existing text in another cell.

Before:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]4600[/TD]
[TD]PE[/TD]
[/TR]
[TR]
[TD]4606[/TD]
[TD]PB2
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4610[/TD]
[TD]PEM[/TD]
[/TR]
</tbody>[/TABLE]


After:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]4600[/TD]
[TD]4600 PE[/TD]
[/TR]
[TR]
[TD]4606 [/TD]
[TD]4606 PB2
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4610[/TD]
[TD]4610 PEM
[/TD]
[/TR]
</tbody>[/TABLE]
I have hundreds of these I have to do so I'd like to have some kind of macro/automation do it for me.
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
You may want to look at concatenate.

Though if you need a macro, something like this (hard to be exact without any additional details):

Code:
Sub append()

Dim mystring As String


mystring = Sheets("Sheet1").Range("B2").Value


Sheets("Sheet1").Range("B2").Value = Sheets("Sheet1").Range("A2").Value & " " & mystring


End Sub
 
Upvote 0

Forum statistics

Threads
1,223,767
Messages
6,174,395
Members
452,561
Latest member
amir5104

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top