+ Reply to Thread
Results 1 to 2 of 2

Need a macro that locks row height and wrap text in a pivot table

  1. #1
    Registered User
    Join Date
    02-21-2013
    Location
    Waco TExas
    MS-Off Ver
    Excel 2003
    Posts
    29

    Need a macro that locks row height and wrap text in a pivot table

    I need my header row in my pivot table to lock the text wrap and row height. I know little about VBA, but I found the following code, but it doesn't lock my wrap settings. Any help would be much appreciated.

    Sub PivotAutoFormatOff()
    Dim pt As PivotTable

    On Error Resume Next
    For Each pt In ActiveSheet.PivotTables
    pt.HasAutoFormat = False
    Next pt
    End Sub

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Need a macro that locks row height and wrap text in a pivot table

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code in
    Please Login or Register  to view this content.
    tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1