+ Reply to Thread
Results 1 to 9 of 9

self adjusting chart?

  1. #1
    Registered User
    Join Date
    03-18-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    5

    Question self adjusting chart?

    Hey there Im new to the forum and I have abused the search bar with no help...


    What Im trying to do is make a chart that can self adjust to a set of cells. For example when I input a diffrent number of rows and columns in the elevation grid dimensions and i proceed to the height input I get the new set of cells but the chart dissapears. I would for the chart to simply adjust to the new dimensions.

    I think since when you adjust the elevation grid dimensions and click on the macro for "proceed to height input". It takes you to the height input sheet with the the cells highlighted. Can I make a macro that will make a chart according to the new cells. What if i go back to the elevation grid constraints and change values, would the chart disappear?

    Sorry If I'm being too nooby. If you guys want I could delete this and continue searching...

    Elevation Grid Generator.xlsm

    Help.jpg

  2. #2
    Valued Forum Contributor
    Join Date
    01-10-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    651

    Re: self adjusting chart?

    how about a named range? looks like you've got code in there to create the chart, replace your range with a named range for which the formula is:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-18-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: self adjusting chart?

    Quote Originally Posted by simarui View Post
    how about a named range? looks like you've got code in there to create the chart, replace your range with a named range for which the formula is:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Okay and will this make the chart adjust to the input values?

    Either way I'll go try this out

    Sent from my HTC One using Tapatalk

  4. #4
    Valued Forum Contributor
    Join Date
    01-10-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    651

    Re: self adjusting chart?

    i'm not certain I understand the question... but i think the answer is yes, when you run that code if you reference your named range with the offset formula there the range will grow if you add columns to row 6 or rows to column B.

  5. #5
    Registered User
    Join Date
    03-18-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: self adjusting chart?

    Quote Originally Posted by simarui View Post
    i'm not certain I understand the question... but i think the answer is yes, when you run that code if you reference your named range with the offset formula there the range will grow if you add columns to row 6 or rows to column B.
    hmmm Where do i put this code? Withthin the macro?

    Please excuse my stupididty....

  6. #6
    Valued Forum Contributor
    Join Date
    01-10-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    651

    Re: self adjusting chart?

    the formula that I wrote is intended to be a named range (Formulas/Define name) where you can pick whatever name you want and in the "Refers to" box you put my formula.

    Then in the create chart macro there's a line of code that defines your range, you should just need to replace the defined range with whatever you named your named range.

  7. #7
    Registered User
    Join Date
    03-18-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: self adjusting chart?

    Untitled.jpg

    Sorry but i didnt make the macros

    But im guessing I just copy and paste it there?

  8. #8
    Valued Forum Contributor
    Join Date
    01-10-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    651

    Re: self adjusting chart?

    leave =Range("") ... so it should be something like =Range("whateveryounamedyourrange")

  9. #9
    Registered User
    Join Date
    03-18-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: self adjusting chart?

    Quote Originally Posted by simarui View Post
    leave =Range("") ... so it should be something like =Range("whateveryounamedyourrange")
    Ahhh ok thanks I'm gonna go try it now!

    Sent from my HTC One using Tapatalk

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Adjusting radar chart through vba
    By GIS2013 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-04-2014, 12:26 PM
  2. Adjusting chart Y-axis value using VBA
    By goels in forum Excel General
    Replies: 5
    Last Post: 11-07-2011, 08:04 AM
  3. Adjusting Chart Ranges
    By schw1927 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-16-2008, 10:49 AM
  4. [SOLVED] Chart Adjusting Macro II
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-05-2006, 10:00 AM
  5. [SOLVED] Adjusting the Chart area
    By Mr_Mani in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-30-2006, 06:45 AM

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