+ Reply to Thread
Results 1 to 3 of 3

Changing cell for string value

  1. #1
    Registered User
    Join Date
    05-26-2009
    Location
    california
    MS-Off Ver
    Excel 2003
    Posts
    15

    Changing cell for string value

    I have a macro to make a chart, and I am trying to tweak it so that it will assign the appropriate labels to the axes. I have the macro set up so that all I have to do is pick the two rows that I want plotted against one another, and it then makes separate series in those rows for each data point.

    I am trying to make it so that it will also pick the value of the axis from the A column. The code I have been trying is:

    labelX = "=sheet1!A" & xvalues

    and

    .AxisTitle.Text = labelX

    where labelX is a string and xvalues is the input for the row number of the relevant data.

    Excel doesn't like this code. Any idea how to fix it?
    Last edited by mineralfellow; 10-26-2009 at 12:34 PM.

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

    Re: Changing cell for string value

    Perhaps,

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    05-26-2009
    Location
    california
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Changing cell for string value

    Knew it was simple, thanks!

+ 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