A macro to change formatting of 27 graphs

yabi100

Board Regular
Joined
Aug 10, 2013
Messages
89
Office Version
  1. 2016
Platform
  1. Windows
I have 27 graphs in 27 sheets in an excel file. I want to perform exactly similar changes in all 27 graphs, like bringing the axis labels from middle to low, add border line and few more formatting changes. Is there any Macro solution to write and apply to all 27 sheets at once? I have very small knowledge of Macro programming but I think it would be possible. I can record steps in one sheet but I don't know how make do loop to extend it to all remaining sheets?Will be happy to guide me how to amend/write this Macro.
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
I have 27 graphs in 27 sheets in an excel file.
You could give an example of a sheet with data (use XL2BB tool) and the graph. If the data is sensitive, change it to dummy data.
Put an image of how the graph is before the macro.


I can record steps in one sheet
Now record the macro with what you want to do to the graph.

Put here the code generated by the recording and also the image of the resulting graph.

With all of the above I will try to help you make the cycle for all the sheets and their graphs.
🤗
 
Upvote 0
You could give an example of a sheet with data (use XL2BB tool) and the graph. If the data is sensitive, change it to dummy data.
Put an image of how the graph is before the macro.



Now record the macro with what you want to do to the graph.

Put here the code generated by the recording and also the image of the resulting graph.

With all of the above I will try to help you make the cycle for all the sheets and their graphs.
🤗
Thanks Dante
Let me prepare the requested material and I will send them.
 
Upvote 0

Forum statistics

Threads
1,224,617
Messages
6,179,915
Members
452,949
Latest member
beartooth91

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