Finding specific text and pasting clipboard relative to it

chadski778

Active Member
Joined
Mar 14, 2010
Messages
297
I would like to paste the contents of the clipboard into column A of my active worksheet on the same row as the text "Actual%". This text is not duplicated anywhere else in my spreadsheet but its position varies

Thank you
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Similar to p45cal's:

Code:
Cells.Find("Actual%").Offset(, 1).PasteSpecial  ' to the right
 
Upvote 0
Thanks, that works when I have text copied to the clipboard but not if I have the contents of a group of cells copied. I would like a selection of cells copied into that position
 
Upvote 0
I would like to paste the contents of the clipboard into

This was what you asked. To paste the contents of the clipboard.


Code:
I would like a selection of cells copied into that position I would like a selection of cells copied into that position

This is another thing. Not enough details, but you may adapt, for ex.:

Code:
Range("A1:D1").Copy Destination:=Cells.Find("Actual%")
 
Upvote 0
This has worked thanks. I edited it to enable me to copy from a separate spreadsheet and paste into my active worksheet relative to my specific text

Thank you
 
Upvote 0

Forum statistics

Threads
1,224,514
Messages
6,179,219
Members
452,895
Latest member
BILLING GUY

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