ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   autocreate chart (https://www.excelbanter.com/excel-programming/283739-autocreate-chart.html)

paradise

autocreate chart
 
how do i auto create a chart using Vba for the range A1: C14 right
after cell C14 has a value in it?

thanks in advance :)

Bill Manville

autocreate chart
 
Paradise wrote:
how do i auto create a chart using Vba for the range A1: C14 right
after cell C14 has a value in it?


So you want to take action when the value in C14 changes?
That suggests a Worksheet_Change procedure in the module belonging to
the sheet.

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Intersect(Target, Me.Range("C14")) Is Nothing Then Exit Sub
If IsEmpty(Me.Range("C14")) Then Exit Sub ' must have been cleared
' code to create the chart (you could macro record this).
End Sub

Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - reply in newsgroup



All times are GMT +1. The time now is 07:26 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com