Report Format Macro that can run from any Excel workbook

PNCD

New Member
Joined
Aug 30, 2020
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Newbie post alert!
I have plenty of experience with XLAM add-in libraries to enrich Excel function.
I have also written report formatting code for re-used reports.
Now I am stuck trying to do something different:

I receive a data file that I want to structure and format in a standard and attractive way: moving data, text formatting, colour, boxes etc.
The file I receive is a simple XLS file.
I have written macro in such a file to get the arranging of the data in the format I want.

The problem is how can I take the arranging and formatting code into an add-in that can be used with each new XLS data file update?

I can create an XLAM file and save it in the default AddIns directory.
But this is not an in-cell function.
The first function in my code is to have the user select a report file to be formatted.
I need some way of running the formatting code outside of the report file: an object that runs the code to open a selected file, format it and print /save the finished report.

I appreciate any help you can provide - I am sure it is doable but outside of my experience.
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Forum statistics

Threads
1,214,983
Messages
6,122,595
Members
449,089
Latest member
Motoracer88

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