Message Boards Message Boards

0
|
3187 Views
|
2 Replies
|
3 Total Likes
View groups...
Share
Share this post:

How to protect a defined function from clearing?

I defined a function that I am using in all my file sections. In each section I am using the Clear function, therefore I need to go back and run that function again. Is there a way to protect that function from clearing?

POSTED BY: Ismail Mudhaffar
2 Replies
Posted 3 years ago

Yep, have a look at Protect, or SetAttributes with the Protected attribute.

Clear or ClearAll would then start issuing a message saying it can't clear your function because it's protected, which reassuring at first but may become annoying, so you could Quiet the Clear.

POSTED BY: Joel Klein

That helped. Thank you very much.

POSTED BY: Ismail Mudhaffar
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract