PC Review


Reply
Thread Tools Rate Thread

autocreate chart

 
 
paradise
Guest
Posts: n/a
 
      27th Nov 2003
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
 
Reply With Quote
 
 
 
 
Bill Manville
Guest
Posts: n/a
 
      27th Nov 2003
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

 
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
autocreate broke =?Utf-8?B?dGFtYXJha2F5?= Microsoft Outlook Discussion 0 26th Jul 2007 08:28 PM
Autocreate folders Mike Microsoft Excel Discussion 1 2nd May 2006 03:16 AM
Autocreate POINTERS? Jörgen Persson Microsoft Windows 2000 DNS 1 1st May 2005 08:22 PM
AutoCreate TextBox ? WJ Microsoft ADO .NET 5 15th Oct 2004 10:29 PM
Printer will not autocreate barb Microsoft Windows 2000 Terminal Server Clients 0 7th Jun 2004 11:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:45 AM.