I'm am looking for something that I thought would be relatively easy. This is proving to not be the case for the amount of knowledge in VBA I have obtained. I would like a Plus and Minus icon on a spreadsheet and use these to increase/decrease a specific columns width. The key is I want to increase either by 20% or something like a specific value (5). These both rely on using the current width with a multiplier or additive. Any ideas? Below is what I was tinkering with but no luck so far.
Code:
Sub ColumnIncrease()
ActiveSheet.Unprotect Password:="UNPROTECTME"
Dim cw As Long
Set cw = .Columns("Z").ColumnWidth
With Worksheets("Test Plan").Columns("Z").ColumnWidth = cw + 5
End With
ActiveSheet.Protect Password:="PROTECTME", AllowInsertingRows:=True, AllowDeletingRows:=True, AllowFormattingCells:=True
End Sub