Excel VBA請教

' 巨集1
ActiveSheet.Unprotect Password:="3007"

ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True, AllowFormattingCells:=True, AllowFormattingColumns:=True

ActiveSheet.Protect Password:="3007"
'ActiveWorkbook.Save
End Sub


請高手幫幫忙!
「允許使用者在受保護的工作表上設定任何儲存格的格式」
請指點哪邊有錯?
巨集執行後,「允許使用者在受保護的工作表上設定任何儲存格的格式」的勾勾都會不見,變成不能設定任何儲存格格式。
2024-02-07 13:35 發佈
文章關鍵字 Excel VBA
您將程式碼改成下面,再試試看結果是否就是您想要的............?
ActiveSheet.Unprotect Password:="3007"

ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True, AllowFormattingCells:=True, AllowFormattingColumns:=True, Password:="3007"
內文搜尋
X
評分
評分
複製連結
Mobile01提醒您
您目前瀏覽的是行動版網頁
是否切換到電腦版網頁呢?