autocreate chart

P

paradise

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 :)
 
B

Bill Manville

Paradise said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top