Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have this macro which I pasted below and it works great. However once I
lock cells J7:116 and L7:116, the macro no longer works. Do you know what I can do differently so that I can run the macro below but still keep cells J7:116 and L7:116 locked? Sub OrderThenFindEmptyCell() Dim BlankCell As Range With Range("B7:B11") With .Validation .Delete .Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, _ Operator:=xlBetween, Formula1:="=Order" .IgnoreBlank = True .InCellDropdown = True .InputTitle = "" .ErrorTitle = "" .InputMessage = "" .ErrorMessage = "" .ShowInput = True .ShowError = True End With Set BlankCell = .Find("", After:=Range("B11"), SearchOrder:=xlByRows) BlankCell.Select End With End Sub |