Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

creating graph vba excel

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Creating a Graph in VBA for Excel

Creating a Graph in VBA for Excel

ResolvedVersion 2003

Chris has attended:
Excel VBA Advanced course

Creating a Graph in VBA for Excel

As asked on the course, when you are creating a graph in VBA for display on an Excel worksheet, is there a way to determine the graph's size on its creation rather than having to resize (and consequently estimate the growth/reduction percentage)?

RE: Creating a Graph in VBA for Excel

Hi Chris

Thanks for the question

I have discovered that setting the width and height properties can be accessed by identifying the chart through the chart objects collection.

e.g

ActiveSheet.ChartObjects(1).Width = 600


works fine

I am still understanding how this relates to the width / height properties of the chart area etc. I will follow up when I know more

Regards

Stephen

Wed 7 Oct 2009: Automatically marked as resolved.

 

Training courses

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Excel tip:

Creating a range of monthly payments as text

You could use a formula to create a range of payment ie. payment amount for x% to y% rate with fixed terms and principle.

The text that would be "between Xamount and Yamount".

Here is how to do it.

1 Use the PMT function to get your monthly payments figure or whatever frequency of payments that you choose he start range.

See PMT under Excel Help

2. Nest these in the ROUND function to round decimals see ROUND under Excel Help


3. Concatenate this using "&" and concatenate " to " and concatenate "Between ".

4. Concatenate the above to PMT function for the end range

ie.

="Between "&ROUND((PMT1),decimal places)&" and "&ROUND((PMT2),decimal places)

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.13 secs.