PC Review


Reply
Thread Tools Rate Thread

How do I Auto Populate a cell with a chart based on a value

 
 
Bryan
Guest
Posts: n/a
 
      24th Mar 2007
I have a number of values (example: H 25%, H 50%, H 75%) in separate
cells on column. There are 30 in total. I would like my team to enter
one of the values in a separate cell which would then pre-populate a
chart based (also within the spreadsheet) on that value. The theory
is
that the higher the sales stage/value, the larger the graph gets. Is
this possible? I'm a novice in excel so, please be as basic as
possible. Any assistance ASAP would be greatly appreciated.


THANK YOU.

 
Reply With Quote
 
 
 
 
=?Utf-8?B?Sm9lbA==?=
Guest
Posts: n/a
 
      28th Mar 2007
Yes you can. the size can only be a scale factor to the present size. To
double the size enter 2, to make half .5

Enter a simple chart such as

A B

1 A 1

2 B 2

3 C 3

4 D 4

1) Create chart above
2) Copy Subroutine below
3) Go to worksheet and right cllick tab (normally sheet1) on bottom of
worksheet
4) Select View Code
5) Past code into VBA window
6) go back to worksheet and enter any number in cell E10.


Sub Worksheet_change(ByVal Target As Range)

If (Target.Row = 10) And (Target.Column = 5) Then
ActiveSheet.Shapes("Chart 1").ScaleWidth Target, _
msoFalse, msoScaleFromTopLeft
ActiveSheet.Shapes("Chart 1").ScaleHeight Target, _
msoFalse, msoScaleFromTopLeft

End If

End Sub


"Bryan" wrote:

> I have a number of values (example: H 25%, H 50%, H 75%) in separate
> cells on column. There are 30 in total. I would like my team to enter
> one of the values in a separate cell which would then pre-populate a
> chart based (also within the spreadsheet) on that value. The theory
> is
> that the higher the sales stage/value, the larger the graph gets. Is
> this possible? I'm a novice in excel so, please be as basic as
> possible. Any assistance ASAP would be greatly appreciated.
>
>
> THANK YOU.
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto populate this cell based on what's typed in this cell CrazyChic Microsoft Excel Misc 2 10th Apr 2009 02:25 PM
How do I Auto Populate a cell with a chart based on a value Bryan Microsoft Excel Worksheet Functions 0 24th Mar 2007 01:03 AM
How do I Auto Populate a cell with a chart based on a value Bryan Microsoft Excel Discussion 0 24th Mar 2007 01:00 AM
auto populate cell based on previous cell drop down list selectio. =?Utf-8?B?UHV6emxlZGJ5TGlzdHM=?= Microsoft Excel Misc 2 11th Sep 2006 01:28 AM
HOW ?Excel chart auto insert /populate a code based on date =?Utf-8?B?TWlrZVItT3o=?= Microsoft Excel New Users 6 22nd Dec 2005 12:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:48 AM.