We like all code snippets to be displayed with tags.
Call is used to run a Procedure or Macro, so the second line of code should work. You can declare the password as a Constant
I'm not sure why the objects are moving maybe attach the workbook in a new thread on that problem![]()
Const PW as String = "secret" sheet("bla").protect password:= PW
Bookmarks