The bar chart in the other thread is very good but I want to protect the sheet.There is mention in post #14 in that thread that if I want to protect the sheet and hide/unhide columns I would need to do this in VBA code.

Is it possible to achieve this using VBA?

Thank you

Reg