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:
4600PE
4606PB2
4610PEM

<tbody>
</tbody>


After:
46004600 PE
4606 4606 PB2
46104610 PEM

<tbody>
</tbody>
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

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
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,213,543
Messages
6,114,236
Members
448,555
Latest member
RobertJones1986

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