dakota727
Board Regular
- Joined
- Dec 3, 2006
- Messages
- 164
- Office Version
- 365
Does anyone know of an easy way to select all empty cells in a worksheet using VBA. I wanted to take a protected sheet and use VBA to unprotect it. Then unlock all the cells on the sheet that are empty and then re-protect the sheet. I was using the Go To Special feature but found out it will not identify merged cells as containing values. The plan was to use this to lock down entries as they are mad in a log sheet. I planned to have the user use a command button to lock the entries using a button to lock and save the file. The other option is to take all cells that are not empty and change them to locked. Either direction works I gut thought the Go to Special Blanks would be a relatively easy way. Sadly that was hours ago.
It seems like what ever I try runs into issues with merged cells.
I know the easy answer is to get rid of the merged cells but I was hoping to get code that would work on a wide variety of forms.
Does anyone have any ideas?
It seems like what ever I try runs into issues with merged cells.
I know the easy answer is to get rid of the merged cells but I was hoping to get code that would work on a wide variety of forms.
Does anyone have any ideas?