Remember the last thing copied

Sara00712

New Member
Joined
Oct 31, 2019
Messages
3
Hello ppl! I googled my problem before posting but couldn't find anything helpful so i decided to ask here.
Is there an option to remember the last thing i copied and paste it after doing several actions in between ?
For example > I have to copy some text and paste in one cell, than i change the row height, color fill some other cells, add new rows .. or whatever.. and then i want to paste the same text in another cell. In order to do that I need to go up, copy that once again so i can paste it. This takes me a lot of time, so i wonder if there's an option to just copy something once and keep that thing copied until i copy something else? :confused:
I'm using Excel 2016.

Thanks a lot :))
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Hello,

The function key F4 allows to repeat your last action ...

Hope this will help
 
Upvote 0
welcome to the forum

simple with VBA

1. Place in a standard module
Code:
Public CopiedText As String

Sub GetText()
    CopiedText = ActiveCell.Text
End Sub

Sub PasteText()
    ActiveCell = CopiedText
End Sub

- open VBA editor with {ALT} {F11}
- Insert Module with {ALT} I M
- paste code into the window which open up
- back to Excel with {ALT} {F11}

2. Assign shortcuts to the 2 macros
eg so that you can copy with
{CTRL} k and paste with {CTRL} q

- to assign shortcut
{ALT}{F8} \ select macro \ Options \ insert chosen letter into the box \ click OK
 
Upvote 0
welcome to the forum

simple with VBA

1. Place in a standard module
Code:
Public CopiedText As String

Sub GetText()
    CopiedText = ActiveCell.Text
End Sub

Sub PasteText()
    ActiveCell = CopiedText
End Sub

- open VBA editor with {ALT} {F11}
- Insert Module with {ALT} I M
- paste code into the window which open up
- back to Excel with {ALT} {F11}

2. Assign shortcuts to the 2 macros
eg so that you can copy with
{CTRL} k and paste with {CTRL} q

- to assign shortcut
{ALT}{F8} \ select macro \ Options \ insert chosen letter into the box \ click OK


Thank you, thank you, thank you!!! It worked!! :):):)
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,733
Members
448,987
Latest member
marion_davis

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