Hi guys
After searching an hour for the correct code. I am creating a new shape with this code:
Sheets("processtyring").Unprotect Password:="HKV"
ActiveSheet.Shapes.AddChart(xlBarStacked, 150, 150, 1000, 250).Select
Sheets("processtyring").Protect Password:="HKV"
Now i want to mimic the proces of selecting this newly created chart and unlocking it, so users are able to select and edit it, but only parts of the rest of the sheet, which is why it is beeing protected at the end.
I have other shapes/buttons, so it must be only this newly created shape that is getting unlocked. Recording a macro i cant seem to figure out the code.
After searching an hour for the correct code. I am creating a new shape with this code:
Sheets("processtyring").Unprotect Password:="HKV"
ActiveSheet.Shapes.AddChart(xlBarStacked, 150, 150, 1000, 250).Select
Sheets("processtyring").Protect Password:="HKV"
Now i want to mimic the proces of selecting this newly created chart and unlocking it, so users are able to select and edit it, but only parts of the rest of the sheet, which is why it is beeing protected at the end.
I have other shapes/buttons, so it must be only this newly created shape that is getting unlocked. Recording a macro i cant seem to figure out the code.