android:如何创建ACRA崩溃报告Txt文件?(android: how to create ACRA crash Report Txt File?)
我想通过ACRA崩溃报告而不是EMail / GoogleDoc等创建崩溃日志信息的文本文件,所以我如何实现这一目标?
I want to Create Text File of Crash Logs Information by ACRA Crash Report Instead Of EMail/GoogleDoc etc. so how can i achieve this goal?
原文:https://stackoverflow.com/questions/10716892
更新时间:2022-01-08 15:01
最满意答案
您需要定义要保护的工作表。 在下面的示例中,我将对象变量
WrkSht
设置为包含工作表属性“Log Book”。 您可以使用此对象变量上的protect-method来保护工作表。Sub ProtectWorksheet() Dim WrkSht As Worksheet Set WrkSht = ActiveWorkbook.Sheets("Log Book") WrkSht.Protect Password:="password", UserInterfaceOnly:=True End Sub
You need to define which worksheet you want to protect. In the example below I have set the object variable
WrkSht
to contain the worksheet properties of the sheet "Log Book". You can protect the sheet by using the protect-method on this object variable.Sub ProtectWorksheet() Dim WrkSht As Worksheet Set WrkSht = ActiveWorkbook.Sheets("Log Book") WrkSht.Protect Password:="password", UserInterfaceOnly:=True End Sub
相关问答
更多-
使用 With sheetObject 代替 With Worksheets(sheetObject) Use With sheetObject instead of With Worksheets(sheetObject)
-
您需要定义要保护的工作表。 在下面的示例中,我将对象变量WrkSht设置为包含工作表属性“Log Book”。 您可以使用此对象变量上的protect-method来保护工作表。 Sub ProtectWorksheet() Dim WrkSht As Worksheet Set WrkSht = ActiveWorkbook.Sheets("Log Book") WrkSht.Protect Password:="password", UserInterfaceOnly:=Tru ...
-
自己找到了答案: 我需要Workbook.ProtectStructure和Workbook.ProtectWindows属性。 Found the answer myself: I need the Workbook.ProtectStructure and Workbook.ProtectWindows properties.
-
您正在使用事件宏更改单元格。 你必须: Application.EnableEvents = False 在For循环和之前 Application.EnableEvents = True 在For循环之后。 You are changing cells with the event macro. You must: Application.EnableEvents = False before the For loop and Application.EnableEvents = True aft ...
-
通过VBA验证工作表上的设置密码是否正确(Verifying that a set password on a worksheet is correct though VBA)[2023-09-04]
使用密码取消保护工作表后您可以验证工作表是否受保护。 这是完整的代码: Sub CheckSheetPassword() Dim ws As Worksheet On Error Resume Next For Each ws In Worksheets ws.Unprotect Password:="Password" If ws.ProtectContents = False Then ' The sheet is unp ... -
在睡了一夜之后仔细查看你的代码,我相信我看到了这个问题。 您取消保护工作簿 ,然后立即重新保护它,然后尝试取消保护受保护工作簿中的工作表 。 不是100%肯定这是一个问题,但试试这个: Private Sub OK_Button_Click() 'Dim Supplier As String Dim ws1 As Worksheet Dim ws2 As Worksheet Set ws1 = Sheets("Buyer's Sheet") Set ws2 = Sheets(Me.Supplier_Co ...
-
@jkpieterse给解决这个问题的方法是将My_Code()的第二行改为 Thisworkbook.Sheets("Main").Range("B2").Value = ThisWorkbook.Sheets("Secondary").Range("A2").Value 然而,这在我的代码中创建了一个新的错误,这是在评论中提到的。 这个问题背后的原因是UserInterfaceOnly = true不允许宏修改表单,它只允许改变值。 因此,在修改工作表时,无法使用接口保护工作。 从这里唯一的解决方案是 ...
-
啊哈! 愚蠢的我。 它没有运行的原因是因为该单元格正在从预定义列表中获取其数据。 所以无论何时点击单元格,它都会自动进入“列表模式”,因此不会运行doubleclick事件。 我从来没有机会双击,因为一次点击就足以激活“列表模式”! Aha! Stupid me. The reason it wasn't running is because the cell was getting its data from a predefined list. So whenever I clicked on the ...
-
您应该做的是取消保护工作表,删除空行,然后重新打开保护。 Sheets("Media Plan").Select ActiveSheet.unprotect Password:="password" Cells.Select Selection.SpecialCells(xlCellTypeBlanks).Select Selection.Delete Shift:=xlUp ActiveSheet.protect Password:="password" What you s ...
-
受保护的工作表允许通过复制和粘贴来编辑单元格格式(Protected worksheet allows editing cell format by copy and paste)[2022-10-07]
如果用户决定复制并粘贴格式受保护的单元格,我使用它来仅粘贴值: Private Sub Worksheet_Change(ByVal Target As Excel.Range) If Application.CutCopyMode = xlCopy Then Application.EnableEvents = False Application.Undo Target.PasteSpecial Paste:=xlPasteValues ...