Copy Sheet to Same Workbook but Values, Formatting Only with a Twist....

arossijr

Board Regular
Joined
Aug 29, 2016
Messages
72
Good Afternoon All:

I am trying to Copy a Sheet to the Same workbook Rename it and have it as Values only so that it can be copied by itself into a new workbook.
Or better yet, just Copy the Sheet into New Workbook as Values only... But there is a catch... I am using Indirect in the formulas on the sheet and is hindering my normal copy method.

For my sheets without the Indirect formulas i have:

Sheet.Copy After:=Newbook.sheets(Newbook.sheets.count)
Newbook.sheets(sheet.name).UsedRange.Cells.Value = Newbook.Sheets(Sheet.Name).UsedRange.Cells.Value

When I do this the Formulas with Indirect Break and well book its broken...
I was trying to use ActiveSheet.PasteSpecial xlPasteValues but I am getting an error..Then Excel for some reason just blows up...
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
I was able to piece together some code that is working. But for some reason the Sheet that is copied out and saved is being corrupted. When the sheet is opened i get the error about it being corrupted, i choose fix and it opens and tells me that the tables bin was corrupted.
How can i prevent this?
 
Upvote 0

Forum statistics

Threads
1,203,523
Messages
6,055,895
Members
444,832
Latest member
Kauri

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