Hello,
I’m still looking for the solution of the compiler problem. I always get the following error:
Why does the first sub work fine and the second one produces this error? It doesn’t matter what I put in the second Sub. So my questions about protecting and calculating sheets are not actual any more. I always get this error. Does anybody have an idea?
Thank you very much.
'Write here subs to be protected with compilation
'These subs can then be invoked at runtime with PLEvalVBA function.
Sub MyProtectedSub(Param1)
'Place the code you want to protect here.
MsgBox (“This is a demo”)
End Sub
Sub MyProtectedSub2(Param1)
'Place the code you want to protect here.
End Sub
Sub Einstell(Param1)
Application.ThisWorkbook.Sheets(2).Cells(76, 1).Value = “Calculate”
End Sub
Sub Aktual(Param1)
Application.ThisWorkbook.Sheets(2).Cells(76, 1).Value = “Calc”
End Sub