VBA Save Desired Worksheets to New Workbook - Paste Values for one Range, Formats for Another Range, Remove All Power Queries and Connections.

lager1001

Board Regular
Joined
May 17, 2019
Messages
88
I have a master workbook that crunches data into three worksheets (All same workbook) via power queries, data modeled columns in power pivot, and some formulas.

I currently use VBA to archive and save this workbook with each update however the archived files still contain all of the formatting, formulas, queries, pivots, etc. This makes the files, in some cases, very temperamental to work with .

My goal would be to save Sheet 1 to the new workbook as values only. Sheet 2 Ranges A:H would be formats & values, Sheet 2 Range I:CK would be Values Only. Sheet 3 would follow same format as Sheet 2.

Then I want to save this new workbook to the desired path and rename using my defined naming convention.

Can anyone assist?
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

Forum statistics

Threads
1,214,606
Messages
6,120,490
Members
448,967
Latest member
visheshkotha

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