Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Preserve cell formatting as SSN danhattan Excel Discussion (Misc queries) 2 August 30th 07 05:36 PM
Resize chart and preserve formatting (Excel 2007) aboeing Charts and Charting in Excel 3 June 27th 07 04:50 AM
How to preserve formatting with vlookup Mathias Excel Discussion (Misc queries) 2 March 29th 06 10:36 PM
Preserve formatting setting in VBA crashing Excel Grant Excel Programming 0 September 21st 04 10:00 PM
Preserve Formatting of pivot table crashing Grant Excel Programming 0 September 21st 04 03:21 AM


All times are GMT +1. The time now is 10:16 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"