Help pasting to another workbook

FreedomSniper206

New Member
Joined
Jun 3, 2017
Messages
7
I just want to copy from one workbook to another but I always get errors ranging from Application defined or Object defined errors to compile errors to the paste area must be the same size as the copy area, I didn't realize how hard copying and pasting something would be. This is my code so far...

Public Sub CommandButton5_Click()
Dim x As Workbook
Dim y As Workbook


Set x = Workbooks("LexingtonBHSNotesCURRENT")
Set y = Workbooks.Open("C:\Users\Brian Kociszewski\OneDrive\ProviderSummaries")


x.Activate
x.Sheets("Skills").Range("N1").MergeArea.Copy
DoEvents
y.Activate
y.Worksheets("False").Range("A2").End(xlToRight).Offset(0, 1).PasteSpecial
End Sub


Any help would be great, Thank you
 

Excel Facts

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

Forum statistics

Threads
1,223,713
Messages
6,174,043
Members
452,542
Latest member
Bricklin

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