View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
grant grant is offline
external usenet poster
 
Posts: 24
Default Preserve Formatting crashing excel

Hi there,

when I use the following code:

For Each pvtTable In ActiveWorkbook.Worksheets
(wkSheet.Name).PivotTables
With pvtTable
.PreserveFormatting = True
.RefreshTable
End With
Next pvtTable

The preserveformatting is crashing excel. I know this
because when I take it out it works.

Any ideas?
Grant.