Office Forum Q&A

Welcome to our Office forum

Technical questions can be asked about Excel, Access, Word, PowerPoint, Outlook, SharePoint and other Office applications without registration and free of charge

New Question

 

ש' שואלת:

פעולת מאקרו בגליון אקסל מוגן - איך אני יכולה להשתמש במאקרו למרות שהרבה תאים מוגנים ונעולים?
 
תודה.
 
 
תשובה:
 
על מנת להפעיל קוד מקרו באקסל (Excel VBA Macro) בגליונות עם תאים מוגנים ונעולים (Excel Protected Sheets) יש להסיר את ההגנה מהגיליון בתחילת הקוד על יד הפקודה הבאה -
 
Sheets("Sheet1").UnProtect Password:="Password"
 
בסיום הקוד יש להפעיל מחדש את ההגנה על הגליון על ידי הפקודה הבאה -
 
Sheets("Sheet1").Protect Password:="Password"
 
בברכה,
צוות אניפיט