View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.misc
Yazan Barakat[_2_] Yazan Barakat[_2_] is offline
external usenet poster
 
Posts: 2
Default Excel sheet protection

Thank you Mr. Mike the solution is partially valid, when i run the macro it
refreshs correctly but when it reprotects it changes the user allowable
options so he will not be able to filter the results.


"Mike" wrote:

you could create a macro like this that will uprotect then refresh then
protect sheet
without a password
Sub refresh()
ActiveSheet.Unprotect
ActiveWorkbook.RefreshAll
ActiveSheet.Protect
End Sub

"Yazan Barakat" wrote:

i have an excel sheet that contains a pivot table that i would like to
protect to avoid selecting locked cells but when i do so i can not refresh
the data of the pivot table!!!
What shall i do