Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Automatically Increasing Chart Ranges

I have attached the file which will hopefully make it easier. The macr
in question is called "Name Ranges" and I have placed '*' where I thin
that the problem lies.

I have produced a table, Data, which supplies the chart with the dat
that it needs. And it works fine until I add additional rows to th
table located within Data.

I would appreciate it if I could have some assistance in adding ne
rows to this table which will allow the chart to be updated wit
additional information. I think that it has something to do wit
Intergers, Variants and Ranges but I have looked through it thi
morning without sucess.

If anyone can aid me in this, that would be fantastic.

Regards,
Kieron White
:confused

Attachment filename: audit tracker.xls
Download attachment: http://www.excelforum.com/attachment.php?postid=53111
--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Automatically Increasing Chart Ranges

PLEASE do not attach files here. We try to teach the questioners to not
attach so let's not have the answerers attach.
Send files direct to the OP.
Thanks,

--
Don Guillett
SalesAid Software

"yogendra joshi" wrote in message
...
Hi Kieron..
Really good and useful question....

Find the sheet attached..

I have removed all your code, to keep it very simple.
You can add other code that is not relating to chart for your use.

I have created named range "Chart" with following formula:
"=OFFSET(Data!$B$4,0,0,COUNTA(Data!$B$4:$B$65536), 4)"

Also, in the Data sheet, i have inserted a code....
Private Sub Worksheet_Change(ByVal Target As Range)
Charts("New_Chart").SetSourceData (Sheets("Data").Range("chart"))
End Sub


This does the trick and you really DO NOT need any other code...

Hope this helps

kiza < wrote:
I have attached the file which will hopefully make it easier. The macro
in question is called "Name Ranges" and I have placed '*' where I think
that the problem lies.

I have produced a table, Data, which supplies the chart with the data
that it needs. And it works fine until I add additional rows to the
table located within Data.

I would appreciate it if I could have some assistance in adding new
rows to this table which will allow the chart to be updated with
additional information. I think that it has something to do with
Intergers, Variants and Ranges but I have looked through it this
morning without sucess.

If anyone can aid me in this, that would be fantastic.

Regards,
Kieron White


Attachment filename: audit tracker.xls
Download attachment:

http://www.excelforum.com/attachment.php?postid=531113
---
Message posted from http://www.ExcelForum.com/




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 115
Default Automatically Increasing Chart Ranges

This can be solved without VBA code, and without attachments to the
newsgroup, as Don has pointed out.

Check out the examples and links on this web page:

http://peltiertech.com/Excel/Charts/Dynamics.html

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______

yogendra joshi wrote:

Hi Kieron..
Really good and useful question....

Find the sheet attached..

I have removed all your code, to keep it very simple.
You can add other code that is not relating to chart for your use.

I have created named range "Chart" with following formula:
"=OFFSET(Data!$B$4,0,0,COUNTA(Data!$B$4:$B$65536), 4)"

Also, in the Data sheet, i have inserted a code....
Private Sub Worksheet_Change(ByVal Target As Range)
Charts("New_Chart").SetSourceData (Sheets("Data").Range("chart"))
End Sub


This does the trick and you really DO NOT need any other code...

Hope this helps

kiza < wrote:

I have attached the file which will hopefully make it easier. The macro
in question is called "Name Ranges" and I have placed '*' where I think
that the problem lies.

I have produced a table, Data, which supplies the chart with the data
that it needs. And it works fine until I add additional rows to the
table located within Data.
I would appreciate it if I could have some assistance in adding new
rows to this table which will allow the chart to be updated with
additional information. I think that it has something to do with
Intergers, Variants and Ranges but I have looked through it this
morning without sucess.
If anyone can aid me in this, that would be fantastic.

Regards,
Kieron White


Attachment filename: audit tracker.xls
Download attachment:
http://www.excelforum.com/attachment.php?postid=531113
---
Message posted from http://www.ExcelForum.com/


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
Increasing number automatically Steve Excel Discussion (Misc queries) 2 September 23rd 08 08:12 PM
increasing invoice number automatically Froggy68 Excel Worksheet Functions 5 December 19th 06 12:10 AM
Automatically increasing a number by 1 Dave Excel Discussion (Misc queries) 3 August 23rd 06 11:13 PM
how can I copy dates, etc. without them automatically increasing TomQ Excel Discussion (Misc queries) 1 February 16th 06 12:12 PM
Adding Ranges, increasing worksheets ZootRot Excel Programming 1 October 23rd 03 02:35 PM


All times are GMT +1. The time now is 02:41 PM.

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

About Us

"It's about Microsoft Excel"