excel vba automatic graph
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Excel VBA Automatic Graph Range Assignment

Excel VBA Automatic Graph Range Assignment

resolvedResolved · High Priority · Version 2007

replyReply Mon 25 Oct 2010, 14:44Delegate Francis said...

Francis has attended:
Excel VBA Intro Intermediate course

Excel VBA Automatic Graph Range Assignment

Hello,

I am using Microsoft Excel VBA 2007 for annual energy use simulation over a year, on an hour by hour basis.

This generates arrays of 8760 numbers (no. of hours in a 365 day year) which I store in named ranges on various worksheets.

I am interested in writing a sub-procedure that would identify from the 8760 number range where the peak energy consumption is and plot a graph showing the 24 hour range that this peak value falls within.

I can use a worksheet function to quickly locate the element in the array that holds the max value for the whole named range, but how do I then write something that shifts the min/max value of the x-axis on the graph to the day (i.e. 24hour range) which this max-value falls under?

I am sure this must be possible but am struggling with chart objects at the moment so any help would be much appreciated!

Best Regards,

Francis

For upcoming training course dates see: Pricing & availability

replyReply Wed 3 Nov 2010, 10:18Trainer Jacob said...

RE: Excel VBA Automatic Graph Range Assignment

Hi Francis

Thank you for your post and detail of what you are trying to do, I have shared this with a colleague and we are reasonably sure that a solution can be reached, just beyond the scope of this forum.

What we would ask is for you to email your working files to us so we can review and identify a solution. Once we have done this we will inform you of the scope of work (durations, costs) to achieve this for you to decide if you wish to engage or not.

Please email me if you wish to discuss further:

Kind regards

Jacob

Tue 9 Nov 2010: Automatically marked as resolved.

 

Please browse our web site to find out more about
excel-xp-training and other Microsoft training courses.

Excel tip:

Transpose text

You can transpose any range of cells, turning the columns into rows and the rows into columns. Just follow these steps:

Select the range.

Click the Copy button on the Standard toolbar to copy it to the Clipboard.

Select a cell outside of the range you copied.

Select Paste Special from the Edit menu.

In the Paste Special dialog box, click Transpose, then OK.

View all Excel hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard