VB(or VBA?) to open excel and update font on chart labels from command line

kvalli

New Member
Joined
May 31, 2016
Messages
2
Hello,

Total noob to VBA and Excel reporting.

We have a set of Excel Reports generated through a combination of Java & VB Processes. The process generates reports based on an Excel Template file. Most of the formatting is controlled in the Excel file. Every week, based on the template file, a new Excel report file is generated.

One particular chart is giving me grief. For some reason, the labels on the chart if it is 0.00, is being overwritten to Calibri Size 10. I changed it in the template file, also manually overwrote it on the VBA code, but in the final report, it resets the font size to Calibri 10.

So, I'm thinking I could write a small VB Script to open the file and update the chart label based on the value. I can run the script from a bat file after the report is generated.

Any thoughts on if this is a good approach? How do I go about it? Where do I even begin?

Any input on this is greatly appreciated.

Thanks & Regards,
V
 

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,814
Messages
6,121,711
Members
449,049
Latest member
THMarana

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