Copy Contents and Add to the Start of Existing Cell Contents

KurtWilliams

New Member
Joined
Jun 21, 2017
Messages
3
Good Afternoon, this is my first question though I have been benefiting from surfing these forums for years. My VBA skill is spotty and often cobbled together without deep understanding of why stuff works! Slowly learning though.

I currently have an excel tracking document that I use in meetings to take minutes and then on the same log I have a cell that tracks all updates for each file in question typically by typing the date, the note and then Alt+Enter for a line break within the cell so eventually the cell would appear like this:

June 13: Contacted Owner
June 12: Documents recieved
June 10: Inquiry from owner

I am trying to write a quick macro that would allow me to copy the meeting minute cell contents and paste it in front of the existing contents of another cell. This could take the form of two short macros (one for copy and one for paste once the user has selected the cell to paste to.

I've run across a lot of examples of more basic copy and paste functions in excel but the copy cell contents and add to existing contents was not one i could find. Any help or suggestions would be appreciated!
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Hi KurtWilliams - Welcome to the forum. I have likewise benefited from all the wisdom on the forum. It is great to hear when it helps others. I thought the code below might help you get started on this problem. Let me know if it makes sense.

Code:
Sub KurtWilliams_copy_paste()
'Takes the contents of B1 and pastes it in A1 above the current contents
Dim Copy1, original As String

Copy1 = Cells(1, 2).Value 'Data in B1

original = Cells(1, 1).Value 'Original value in A1

Cells(1, 1).Value = Copy1 & Chr(10) & original 'Chr(10) is a line break

End Sub
 
Upvote 0

Forum statistics

Threads
1,224,844
Messages
6,181,294
Members
453,030
Latest member
PG626

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