Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Preserve Formatting crashing excel
This sounds crazy but i think the Preserve Formatting function is cas sensative... I tried it and this worked, hope it helps... For Each pvtTable I ActiveWorkbook.Worksheets("sheet4").PivotTables With pvtTable .preserveformatting = False .RefreshTable End With Next pvtTable -- Ben Sullin -- bsullin ----------------------------------------------------------------------- bsullins's Profile: http://www.excelforum.com/member.php...nfo&userid=139 View this thread: http://www.excelforum.com/showthread.php?threadid=26442 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Preserve Formatting crashing excel
Hmm must be something else, because it still didn't work
for me. -----Original Message----- This sounds crazy but i think the Preserve Formatting function is case sensative... I tried it and this worked, hope it helps... For Each pvtTable In ActiveWorkbook.Worksheets("sheet4").PivotTables With pvtTable .preserveformatting = False .RefreshTable End With Next pvtTable -- Ben Sullins -- bsullins --------------------------------------------------------- --------------- bsullins's Profile: http://www.excelforum.com/member.php? action=getinfo&userid=1394 View this thread: http://www.excelforum.com/showthread...hreadid=264420 . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Preserve cell formatting as SSN | Excel Discussion (Misc queries) | |||
Resize chart and preserve formatting (Excel 2007) | Charts and Charting in Excel | |||
How to preserve formatting with vlookup | Excel Discussion (Misc queries) | |||
Preserve formatting setting in VBA crashing Excel | Excel Programming | |||
Preserve Formatting of pivot table crashing | Excel Programming |