+ Reply to Thread
Results 1 to 2 of 2

Creating a Scatter Plot for any # of data

  1. #1
    Registered User
    Join Date
    07-02-2008
    Location
    United States
    Posts
    23

    Creating a Scatter Plot for any # of data

    I need to write VBA code to create an XY scatter plot. The user needs to be able to enter their XY values, whether they have 2 XY values or 500 XY values, and then click a button and have it create their XY scatter plot.

    The data will always begin in a certain cell, say, A1 (for X) and B1 (for Y), but the cell in which the data ends is dependent on how many data points the user enters.

    I know I can use,
    Please Login or Register  to view this content.
    to select all the existing data in a column, however, I'm not sure if that will be useful here.

    Thanks.

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

    Please Login or Register  to view this content.
    Or you could use a named range and the chart would automatically update

    Or make the area that the values are entered a List (Table in xl2007) and again the chart will auto update
    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