Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 694
Default How to turn off dragging for a Pivot Table field

Hi,
Not sure what you mean by drag off.

You can freeze a field using the below function PivotFieldFreeze.
Pivot freeze would have to be called on each field.

Sub test()
Dim pf As PivotField
Set pf = ActiveSheet.PivotTables(1).PivotFields("A") '<--- change field
name here
PivotFieldFreeze pf
End Sub

Function PivotFieldFreeze(PivotField As PivotField)
With PivotField
.DragToColumn = False
.DragToData = False
.DragToHide = False
.DragToPage = False
.DragToRow = False
End With
End Function

"Prabhakar" wrote:

Hi,
Is there a way to turn off dragging for a Pivot Table.

thanks
prabhakar

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
How do I remove a Calculated Field from the Pivot Table field list TheTraveler Excel Discussion (Misc queries) 2 April 9th 10 06:55 PM
pivot table - dragging fields Raf Rollier Excel Discussion (Misc queries) 2 September 12th 08 02:13 PM
How to make a field created a part of the Pivot Table Field List? drhell Excel Discussion (Misc queries) 0 January 29th 07 11:13 PM
Pivot Table - Dragging multiple items into data field J@Y Excel Discussion (Misc queries) 1 January 12th 07 12:52 AM
How to turn off dragging for a Pivot Table field Prabhakar Excel Programming 0 September 20th 04 03:03 PM


All times are GMT +1. The time now is 06:15 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"