I have a sheet with a formula and there is a VBA code run on it. The formula should be hidden (protected). When the code is run it can not change the Vloockup value of the cell. The first value is continued till the end. When the formula is unprotected everything is OK. But I need the formula to be hidden. This is the step I trying to fix.
VBA Code:
Sub vlookup_Value()
'Unprotect the sheet and formula
'Any code .........
'Protect sheet and cells with the formula
End sub