Trying to cleanup many individual, macro-enabled workbooks with tables to rollup data with Power BI

npasha1

New Member
Joined
May 30, 2023
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hello, I have a data analysis project to roll up multiple individual, macro-enabled Excel workbooks with tables and formulas. Each workbook contains 31 individual sheets (one for each day of the month). The 31 individual day worksheets each contain nested Excel tables with formulas and are password protected. I have the password. The workbook also includes a Monthly Totals worksheet, an Instructions worksheet, and a FAQ worksheet. I want to roll them up using Power BI in order to build dashboards and PivotTable reports. I wanted to write a macro to loop through the folder where the individual workbooks are stored to:
  1. Delete the unneeded worksheets (Monthly Totals, Instructions, FAQ);
  2. Convert all tables to ranges;
  3. Copy/paste special values to convert formulas to numbers;
  4. Save each file
I was able to develop a macro that successfully completes Step 1 above, but neither Step 2 nor Step 3. Hopefully I'm not making this more difficult than it needs to be. Also, do the individual files need to be converted to .xlsx format before attempting to roll them up in Power BI?

Any help would be greatly appreciated.

Thank you.
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,214,913
Messages
6,122,207
Members
449,074
Latest member
cancansova

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