How to copy a form button from one sheet to another using code

orbatrin

New Member
Joined
Jan 12, 2015
Messages
6
Hi,

I am trying to copy a form button from one excel sheet to another sheet while keeping everything intact including position of the button and macros associated to the button. **This NEEDS to work in Excel 2007**

my current code copies an entire sheet over to a new sheet including the buttons and this works perfectly fine using Excel 2010 and above but in Excel 2007, the button does not copy over. Looking for a solution to copy the form button over to another sheet using in Excel 2007.

I will post my code upon request but its not necessary as the code simply copies entire sheet contents from Sheet1 to Sheet2.

Please help.
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
What happens when you right click the sheet tab and select "Move or Copy.."?

Manually copying the sheet will copy everything over just fine. My template is constructed to copy sheet contents to another sheet using VBA, with that said, copying sheet contents to another sheet does not copy over the form button in excel 2007 but works fine in 2010+

Looking for a workaround other than the copy/move tabs.
 
Upvote 0

Forum statistics

Threads
1,215,325
Messages
6,124,254
Members
449,149
Latest member
mwdbActuary

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