สอบถามเกียวกับการ Protect ทุก Sheet
Posted: Tue Sep 17, 2019 10:38 am
Code: Select all
Sub UnProtectAllSheets0()
For Each sht In ThisWorkbook.Worksheets
sht.Unprotect Password:="0000"
Next
End Subแต่ตอนนี้บางเครื่องที่ใช้ 2007 ส่วนใหญ่จะ error ตรง "sht"
มีโคดอะไรแทนกันได้ไหมครับ