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

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

Forum statistics

Threads
1,224,817
Messages
6,181,144
Members
453,021
Latest member
Justyna P

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