so i am trying to get the macro to auto lock cells after data entry, and auto same the workbook every 10 seconds.
this is what i have so far.
to auto lock cells:
Private Sub Worksheet_Change(ByVal Target As Range)
ActiveSheet.Unprotect Password:=“1234”
Target.Locked = True
ActiveSheet.Protect Password:=“1234”
End Sub
and my auto save:
Private Sub Workbook_Open()
Application.OnTime Now + TimeValue(“00:00:10”), “SaveThis”
End Sub
my module:
Sub SaveThis()
Application.DisplayAlerts = False
ThisWorkbook.Save
Application.DisplayAlerts = True
Application.OnTime Now + TimeValue(“00:00:10”), “SaveThis”
End Sub
what issue im running into with libre is “Target.Locked = True” and “ThisWorkbook.Save” is there a LibreOffice way to use these commands?