Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Grey part of plot area

Status
Not open for further replies.

cabUK

Programmer
Dec 16, 2005
2
GB
I have created a gantt chart (using a chart not the cells) in Excel with the tasks going down one side and the dates across the top.

Basically somone wants me to shade previous days. In other words if the chart starts on the 1st Jan and its the 1st Feb he wants from the 1st Jan to 1st Feb dates shaded. With the remaning days left unshaded.

Is this possible? He has said he has seen it done but this is beyond my coding level. I would appreciate any help anyone can give on this.

Thanks in advance

Craig
 
do you know how to manually change the color of the sections?

If so do it and record your actions into a macro.

Move this code into the OpenWorkbook event, and set an if statement on the date in the graph with the date on your computer. Your code will have to assume certain columns represent certain days (i.e. column 1 is Jan 1st say)

Robert Cumming
 
No I dont know how to amnually change the colour of the sections. I was not even aware that you could do this manually.

Craig
 
to change the colour of different sections:

1: Select the entire series with a left mouse click
2: left mouse click again on the line / bar - you have now selected an individual data point
3: Either use the toolbar shortcuts for the fill pallette or RIGHT click with the mouse and choose "Format Data Point"
4: choose your colour

et voila
 


Hi,

You're refereing to something like a TIME NOW line, where everything to the LEFT of the TIME NOW line is shaded.

Add a range for TimeNow with the forumla, assuming that your dates are in column B...
[tt]
=IF(B2<=TODAY(),0,1)
[/tt]
copy the formula thru your data range.

Copy this range.

Select the chart

Edit/Paste Special

Select the new series

Chart/Chart Type - select COLUMN chart type for this series.

select the sheet and add a RECTANGLE from the Drawing toolbar.

Format the Rectangle using a FILL with a gray-tone AND semitransparent -- Line - NONE.

Copy the rectangle.

select the new series

Edit/Paste.

VOLA!

Skip,
[sub]
[glasses] [red]Be Advised![/red] The Vinyards of Texas have produced a wine with diuretic dimishment and urethric relief...
Pinot More![tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top