jimbofoxman
New Member
- Joined
- Feb 23, 2018
- Messages
- 13
I have 3 bits of code in the PERSONAL workbook (hidden on start). First two bits unprotect and protect all worksheets. I have a work book with one tab for every day of the Quarter. On the code I got for clearing all unprotected/unlocked cells it's acting like it's not even running. Is it because the sheets are protected? Even though I have certain cells unlocked.
I modified my ribbon to have buttons for each 3 macros from the PERSONAL workbook.
Here is the code I currently have. I have tried several and it seems like it total ignores it, nothing gets cleared.
Not sure why it acts like it's ignoring it. I've read in several posts about different code for merged cells. I do have some merged cells to deal with too.
Just kinda stumped.
Thanks
I modified my ribbon to have buttons for each 3 macros from the PERSONAL workbook.
Here is the code I currently have. I have tried several and it seems like it total ignores it, nothing gets cleared.
Code:
Dim wks As Worksheet
For Each wks In ThisWorkbook.Worksheets
On Error Resume Next
wks.UsedRange.Value = vbNullString
Err.Clear: On Error GoTo -1: On Error GoTo 0
Next wks
Set wks = Nothing
Not sure why it acts like it's ignoring it. I've read in several posts about different code for merged cells. I do have some merged cells to deal with too.
Just kinda stumped.
Thanks