Is there a way to copy Find and Replace contents?

Tigerexcel

Active Member
Joined
Mar 6, 2020
Messages
493
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
As the title says can this be done? I've seen various internet posts that you select the data and then use Ctrl + C or some other copying method, as soon as I do that the actual contents are no longer kept and when I paste, there's nothing there.
 
Thanks Shaowu, I couldn't get it to work with the Ribbon control in the title but once I removed that it worked however I can only get this to work for words but I couldn't get it to work for formats eg if a cell was coloured with a yellow background.
 
Upvote 0

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Thanks Shaowu, I couldn't get it to work with the Ribbon control in the title but once I removed that it worked however I can only get this to work for words but I couldn't get it to work for formats eg if a cell was coloured with a yellow background.

Sorry, i forgot the code is for the Ribbon.
This copy and paste tool only pastes values. If you need paste values with the orginal format, it is beyond me. Maybe someone else will provide an ideal solution for your query.
 
Upvote 0
Firstly, the code neds to go in the "This Workbook" module.
THEN
Highlight the cells you want copied>>Press ALT + F8>>select the macro>>Press Run
You didn't provide ALL information as requested earlier to carry out this process. Copy data / formats / formulas, etc is much more difficult than simply copying the values across.
Try also, this macro, following the same steps as previosuly mentioned
VBA Code:
Sub MM1()
Set c = Selection
Set Nu = Sheets("Sheet2").Range("A1")
For Each c In c.Areas
    c.Copy Nu.Offset(i)
    i = i + c.Rows.CountLarge
Next c
End Sub
 
Upvote 0

Forum statistics

Threads
1,213,543
Messages
6,114,243
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