Hi,
Is there a way to disable the macro protection option of Excel by using VBA? I try to look under the Application object but could not find anything useful. Also when I try to run the below code on an OfficeXP machine an warning saying that the VB code is from an unsigned source.
With ActiveWorkbook.VBProject.VBComponents(ThisWorkbook.CodeName).CodeModule
If .CountOflines > 0 Then
For i = .CountOflines To 1 Step -1
.DeleteLines i
Next
End If
.AddFromFile ("c:\wkshtCode.txt"
End With
Please help. Thanks and regards.
LSTAN
Is there a way to disable the macro protection option of Excel by using VBA? I try to look under the Application object but could not find anything useful. Also when I try to run the below code on an OfficeXP machine an warning saying that the VB code is from an unsigned source.
With ActiveWorkbook.VBProject.VBComponents(ThisWorkbook.CodeName).CodeModule
If .CountOflines > 0 Then
For i = .CountOflines To 1 Step -1
.DeleteLines i
Next
End If
.AddFromFile ("c:\wkshtCode.txt"
End With
Please help. Thanks and regards.
LSTAN