+ Reply to Thread
Results 1 to 5 of 5

Chart on any page in workbook

  1. #1
    Registered User
    Join Date
    09-27-2014
    Location
    New York City
    MS-Off Ver
    2010
    Posts
    32

    Chart on any page in workbook

    I wish to use a macro to generate a chart from any sheet in a workbook using data on another sheet in the same workbook. The key questions seem to be a) how to define the data range in a form which is accessible from any sheet and b) the syntax to reference the defined range. My attempt has thus far failed:
    Please Login or Register  to view this content.
    I hope that there is a solution that I am missing. Thanks in advance for reading this Post and for any help that is offered.

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Chart on any page in workbook

    try this

    Please Login or Register  to view this content.
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    09-27-2014
    Location
    New York City
    MS-Off Ver
    2010
    Posts
    32

    Re: Chart on any page in workbook

    Thanks humdingaling for the suggestion, I like the technique and will use it in the future. I had to use a kind of brute force method to resolve my requirement.

    Any suggestions for improvement gratefully accepted.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Chart on any page in workbook

    from what i gather from your code
    you just want to make a "POP UP" image of the chart and make it disappear when user press Ok

    if this is all you want you pretty much on point
    msgbox cannot be positioned without lengthy code so inputbox is the right choice

    though i do query, if your source isnt changing as it seems to be hard coded into the VBA
    could you not just make the graph - visible = true/false instead ?

    with this in mind, instead of a button. Use can use a toggle button - for true = chart.show, false = chart.hide?

  5. #5
    Registered User
    Join Date
    09-27-2014
    Location
    New York City
    MS-Off Ver
    2010
    Posts
    32

    Re: Chart on any page in workbook

    Thanks again humdingaling, another good idea for the future. In this current case the counts being copied can in fact be changed by user entries made on the "plot" sheet. Remember I was originally attempting to generate the chart on any worksheet by accessing the data on the "Graph" sheet. I only "fell back" on the Activate approach when I wasn't able figure out "remote" access to the cells on the "Graph" worksheet. It isn't as elegant as I would like, but it works.

    Thanks again for all your help.

+ 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. Replies: 2
    Last Post: 06-04-2015, 09:51 PM
  2. Replies: 0
    Last Post: 07-30-2014, 11:25 AM
  3. Fill in page from another page in workbook
    By Nightstouch in forum Excel General
    Replies: 6
    Last Post: 01-02-2014, 05:23 PM
  4. Replies: 6
    Last Post: 11-17-2013, 01:40 PM
  5. Replies: 0
    Last Post: 05-22-2011, 06:28 AM
  6. Set page setup on chart page when no printer is connected
    By Nicky in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 02-24-2009, 10:13 PM
  7. how to print chart located on another chart on one page?
    By Helmut in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 01-31-2006, 03:40 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