+ Reply to Thread
Results 1 to 7 of 7

How to add a company tagline (logo) on the row after the last row of a pivot table

Hybrid View

  1. #1
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: How to add a company tagline (logo) on the row after the last row of a pivot table

    Very basic example:

    Private Sub Worksheet_PivotTableUpdate(ByVal Target As PivotTable)
        Const cTagLine = "Merry Christmas"
        Dim rngX As Range
        Set rngX = Cells.Find(cTagLine, LookIn:=xlValues)
        If Not rngX Is Nothing Then
            rngX.Clear
        End If
        With Target.TableRange1
            .Offset(.Rows.Count + 1, .Columns.Count - 1).Resize(1, 1).Value = cTagLine
        End With
        Set rngX = Nothing
    End Sub
    To utilise above - right click on sheet name containing the Pivot of interest and select View Code - paste above into resulting window and then close VBE.

    When the Pivot is refreshed so the TagLine should be added to the cell two rows below the bottom right cell of the Pivot wherever that may be post-refresh.

  2. #2
    Registered User
    Join Date
    11-27-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: How to add a company tagline (logo) on the row after the last row of a pivot table

    Brilliant, it worked! Thanks heaps.All i now need to do is format the tagline in the code and add the version no. on the bottom left of the table. I'll keep you posted.

+ 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