ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Protection sheet (https://www.excelbanter.com/excel-programming/345516-protection-sheet.html)

henpat

Protection sheet
 
Hello all
When I runs my VBA macro there is an error because it works in a cell
bloqued.
How can I use the macros in this cell boqued?

Thanks a lot
henpat



K Dales[_2_]

Protection sheet
 
At the start of your macro code put this:
Worksheets("SheetName").Unprotect

At the end, turn protection back on
Worksheets("SheetName").Protect

Use the actual sheet name, of course.
--
- K Dales


"henpat" wrote:

Hello all
When I runs my VBA macro there is an error because it works in a cell
bloqued.
How can I use the macros in this cell boqued?

Thanks a lot
henpat





All times are GMT +1. The time now is 04:49 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com