{"version":"1.0","provider_url":"https://hatena.blog","title":"\u3059\u3079\u3066\u306e\u30b7\u30fc\u30c8\u306b\u5bfe\u3057\u3066\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u4fdd\u8b77/\u89e3\u9664","url":"https://hiko-blog.hatenadiary.com/entry/2024/08/30/203539","image_url":null,"height":"190","width":"100%","provider_name":"Hatena Blog","author_name":"hiko-blog","published":"2024-08-30 20:35:39","blog_url":"https://hiko-blog.hatenadiary.com/","type":"rich","categories":["VBA"],"blog_title":"Hiko.Blog  Excel VBA\u6d3b\u7528\u8853","description":"Sub ProtectAllSheets() Dim ws As Worksheet Dim password As String ' \u30e6\u30fc\u30b6\u30fc\u304b\u3089\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3055\u305b\u308b password = InputBox(\"\u4fdd\u8b77\u306b\u4f7f\u7528\u3059\u308b\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044:\", \"\u30d1\u30b9\u30ef\u30fc\u30c9\u8a2d\u5b9a\") ' \u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u7a7a\u3067\u306a\u3044\u3053\u3068\u3092\u78ba\u8a8d If password = \"\" Then MsgBox \"\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u5165\u529b\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\", vbExclamation Exit Sub End If ' \u30ef\u30fc\u30af\u30d6\u30c3\u30af\u5185\u306e\u3059\u3079\u3066\u306e\u30b7\u30fc\u30c8\u3092\u30eb\u30fc\u30d7\u3057\u307e\u3059 For Each ws In ActiveWorkbook.Works\u2026","author_url":"https://blog.hatena.ne.jp/hiko-blog/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhiko-blog.hatenadiary.com%2Fentry%2F2024%2F08%2F30%2F203539\" title=\"\u3059\u3079\u3066\u306e\u30b7\u30fc\u30c8\u306b\u5bfe\u3057\u3066\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u4fdd\u8b77/\u89e3\u9664 - Hiko.Blog  Excel VBA\u6d3b\u7528\u8853\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}