Macro button located in the first row prevents copy & paste function

kellman

New Member
Joined
Aug 25, 2012
Messages
32
Office Version
  1. 365
Platform
  1. Windows
I've created a macro button that I'd like to be located in the first row.

The problem I'm running into is, if I try to Copy & Paste my data from another workbook into any cell other than A1, the following error message appears:

To Copy all cells from another worksheet to this worksheet make sure you paste them into the first cell A1 or R1C1

Is there a work around for this?
I know that I could add a macro button into the Toolbar, but I'd rather not, if possible.
 

Attachments

  • Macro button with Paste Data.PNG
    Macro button with Paste Data.PNG
    61.3 KB · Views: 10

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Could we assume you are copying the entire column and trying to paste it into the 2nd row?

If that is the case, there would be more rows in the copied range than the paste range.
 
Upvote 0
Yes, and what I am trying to copy and paste has about 75 colums and 30 rows from another workbook.
 
Upvote 0
Sorry for the confusion.

On one workbook I high light the data I want to use and then press Control-C and then on the second workbook (the one building with a macro burron) I then click into the first empty row below the button shape for my macro, and press Control-V. The Macro button is not yet setup, but I will be using it to delete a bunch of columns that I don't need displayed.
 
Upvote 0
If the macro button is causing the problem create a keyboard shortcut for that macro instead of a button.
 

Attachments

  • 1672773053137.png
    1672773053137.png
    65.6 KB · Views: 4
Upvote 0
I know that I can create a toolbar shortcut.
I know that I can create a keyboard shortcut.

My quest is to find out how to keep the proposed macro button on the top row AND also be able to paste larger amounts of data just below it.
 
Upvote 0
Please delete my post
There is no solution to my question.
P.s. I don't have any code.
 
Upvote 0
You haven't supplied the code
Ya, I didn't mean to send this, I thought I changed it.

It's hard to answer the question without knowing the details.

Possibly supply images of the copied range.

And if possible supply a sample workbook save it to a cloud storage and share the link.
 
Upvote 0

Forum statistics

Threads
1,214,786
Messages
6,121,546
Members
449,038
Latest member
Guest1337

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