PC Review


Reply
Thread Tools Rate Thread

how to disable chart tab in Excel?

 
 
Amit
Guest
Posts: n/a
 
      19th Dec 2006

Hello all,

I'm have an active sheet with data in it. Also, there is a chart1 tab
which let user to see the graph of calculated data. How can I enable
and disable the chart tab in lower-left part of the screen?
It must be disable as long as the sheet is not puplated with data.

Thanks,
amit

 
Reply With Quote
 
 
 
 
=?Utf-8?B?TWFydGluIEZpc2hsb2Nr?=
Guest
Posts: n/a
 
      19th Dec 2006
Amit.

Try this on the code for the worksheet where the datatable is.

Change the constants at the start of the code for your requirments.

Option Explicit

Private Sub Worksheet_Change(ByVal Target As Range)
'assume data table in A2:B4
Const cszRange As String = "A2:B4"
Const cszChart As String = "Chart1"

Dim rCells As Range
Dim lCellsNr As Long

Set rCells = Me.Range(cszRange)
lCellsNr = rCells.Cells.Count

If Not (Intersect(Target, rCells) Is Nothing) Then
Charts(cszChart).Visible = _
WorksheetFunction.CountBlank(rCells) <> lCellsNr
End If
Set rCells = Nothing ' not really needed but better here.
End Sub


--
Hope this helps
Martin Fishlock
Please do not forget to rate this reply.


"Amit" wrote:

>
> Hello all,
>
> I'm have an active sheet with data in it. Also, there is a chart1 tab
> which let user to see the graph of calculated data. How can I enable
> and disable the chart tab in lower-left part of the screen?
> It must be disable as long as the sheet is not puplated with data.
>
> Thanks,
> amit
>
>

 
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
How do I disable automatic chart creation in Excel? Huang Microsoft Excel Charting 1 12th Nov 2009 11:02 PM
Extracting Excel.Chart title from Embedded Excel Chart in PowerPoi Barb Reinhardt Microsoft Excel Programming 1 11th Jun 2008 01:30 PM
how to disable chart tab in Excel? Amit Microsoft Excel Programming 0 19th Dec 2006 02:27 AM
Disable pivot chart ability? Ted Horsch Microsoft Excel Charting 5 23rd Aug 2004 07:49 PM
Each time user clicks on "chart" a "chart tool box" appears.. can I disable? Kenji Microsoft Excel Worksheet Functions 0 29th Dec 2003 08:42 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:05 PM.