+ Reply to Thread
Results 1 to 2 of 2

adjustable data set for graph output

  1. #1
    Registered User
    Join Date
    04-23-2011
    Location
    Guildford
    MS-Off Ver
    Excel 2007
    Posts
    21

    adjustable data set for graph output

    Trying to change the source field on a chart by using a acro button

    the user can set the amount of data which i plotted on the graph by entering a number into a spreadsheet field

    This allows the user to view data in more detail if required using the function to zoo in on a particular section

    The first version seems to work setting the nuber to the data set required

    Please Login or Register  to view this content.
    however when I try to change this to allow the user to vary the data being plotted excel complains of errors

    Please Login or Register  to view this content.
    Whole code is displayed below

    Please Login or Register  to view this content.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,438

    Re: adjustable data set for graph output

    Here is an example where there is data in column A:B and number of points to plot is in D1

    Please Login or Register  to view this content.
    This can also be done without VBA by using dynamic named ranges
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

+ 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