VBA code to create horizontal box plot?

Kelvin Stott

Active Member
Joined
Oct 26, 2010
Messages
330
Hi,

Does anyone have some VBA code to create a horizontal box plot (box and whisker plot, including points for mean values) based on selected data?

Any help (code or link to code) would be much appreciated, thank you!

Kelvin
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Kelvin Stott

Active Member
Joined
Oct 26, 2010
Messages
330
Thanks. I played around with the downloadable example worksheet in this link for a good while, to see if it works properly before reproducing it with VBA code, but unfortunately it doesn't work when the box starts below the axis at zero (i.e., when the first quartile is negative).
 
Last edited:

Watch MrExcel Video

Forum statistics

Threads
1,130,119
Messages
5,640,218
Members
417,131
Latest member
Seanr19871

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
Top