+ Reply to Thread
Results 1 to 2 of 2

VBA code to switch graph type at click of a button

  1. #1
    Forum Contributor
    Join Date
    06-19-2009
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    180

    VBA code to switch graph type at click of a button

    Hi

    I want to have a button on my pivot table graph to switch it from a bar chart to a line graph at the click of a command button. Is this possible and if so how?

    Thanks

  2. #2
    Forum Contributor
    Join Date
    10-13-2012
    Location
    Southern California
    MS-Off Ver
    Excel 2007
    Posts
    401

    Re: VBA code to switch graph type at click of a button

    Have you tried experimenting with the Record Macro feature?

    Start recording a macro and carefully go thru the steps to change the graph from a bar chart to a line graph. Then, stop the recording and then view the code. This should put you on the right track.

+ 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