Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default How do I Auto Populate a cell with a chart based on a value

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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to auto populate many cells based on one cell Banshee Excel Discussion (Misc queries) 4 August 5th 09 12:22 AM
How to auto-populate worksheet based on cell entry? tgcali Excel Discussion (Misc queries) 4 April 13th 09 04:11 PM
Auto populate a cell based off a look up table jrt Excel Discussion (Misc queries) 2 April 30th 08 04:25 PM
How do I Auto Populate a cell with a chart based on a value Bryan[_2_] Excel Worksheet Functions 0 March 24th 07 01:03 AM
HOW ?Excel chart auto insert /populate a code based on date MikeR-Oz New Users to Excel 6 December 22nd 05 12:16 PM


All times are GMT +1. The time now is 06:21 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"