Paste Multiple Selections

smitpau

Board Regular
Joined
Apr 2, 2020
Messages
167
Office Version
  1. 365
Platform
  1. Windows
Hi,

I'd like to be able to paste two ranges from another workbook (the data source) to a final workbook using with two macro buttons (one in each) one will say copy and the other paste (in the final workbook).

Copying seems to be okay as you can do something like the below or use a Union method. The issue seems to be that this combines it so removes the spacing between the ranges so when it comes to pasting it pastes in only one range.

Is there a way to copy multiple ranges but keep there independent integrity?
Appreciate I can use four macro buttons (one for each range per workbook) but it's not ideal.

Thanks

Range("f8:g9 i8:t9").Copy

Range("f78:g9, q78").Paste - Not possible
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Do you need something like this?
11.gif
 
Upvote 0
Thanks
Sort of, the spacing in the paste area would be different from the copy area
So for example C1,C2 would go to H1,H2 (instead of G1,G2)
 
Upvote 0
Thanks
Sort of, the spacing in the paste area would be different from the copy area
So for example C1,C2 would go to H1,H2 (instead of G1,G2)
I see. Let's wait for an expert on Excel VBA.
 
Upvote 0
Just to clarify I meant in the original post.

Range("f8:g9 i8:t9").Copy

Range("f7:g9, q8").Paste - Not possible
 
Upvote 0

Forum statistics

Threads
1,212,927
Messages
6,110,720
Members
448,294
Latest member
jmjmjmjmjmjm

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