• Footer in a Chart (2000)

    Author
    Topic
    #427375

    I am trying to put footer in several charts. I have written the footer:

    With ActiveChart.PageSetup
    .LeftFooter = “”
    .CenterFooter = “&””Times New Roman,Regular””&8&T &D. ” & ActiveWorkbook.FullName & “” & Application.ActiveSheet.Name
    .RightFooter = “”
    End With

    However when I select the chart and go to Tools/Macro the only options shown are Record New Macro and Visual Basic Editor.

    Can anyone help?

    Viewing 0 reply threads
    Author
    Replies
    • #990073

      Where did you write this code (i.e., if you view the code, what does the title bar say)?
      And what is its “header” (i.e. Sub …, or Function …)?

      • #990076

        Hans

        The code is in Module 1 of the Workbook, and it is a Sub.

        • #990077

          Does the Sub have arguments?

          • #990081

            No.

            If it makes the code easier I would be happy for the macro to put the footer in all charts in the active sheet in turn.

            • #990082

              Let’s back up a step. You stated “… Tools/Macro the only options shown are Record New Macro and Visual Basic Editor”. Do you mean that there is no Macros… menu item? If so:
              – Select Tools | Customize…
              – Activate the Commands tab.
              – Select Tools in the Categories list on the left.
              – Select Macros… in theCommands list on the right.
              – Drag Macros… to the menu bar.
              – Hover the mouse pointer over the Tools menu until it drops down.
              – Hover the mouse pointer over the Macro submenu until it flies out.
              – Drop Macros… in the submenu.
              – Close the Customize window.

            • #990085

              Oops I replied to my own post.

              Thank you Hans, it works like a charm.

            • #990084

              Thank you Hans, it works like a charm.

    Viewing 0 reply threads
    Reply To: Footer in a Chart (2000)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: