Welcome toExcel.Tips.Net
Tips.Net Home
ExcelTips Home
Ask an Excel Question
Make a Comment
ExcelTips FAQ
ExcelTips Premium
Learn Access Now
Free Printable Forms
Beauty Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Legal Tips
Money Tips
Organizing Tips
Pest Tips
Pet Tips
Wedding Tips
Word2007 Tips
WordTips
Advertise on the
ExcelTips Site
Adding a Little Animation to Your Life
Converting a Range of URLs to Hyperlinks
Making the Formula Bar Persistent
When formatting the data in your worksheet, you may wonder if there is a way to add a drop shadow to a single cell. There is a very simple way to do it, depending on your version of Excel. If you are using a version of Excel prior to Excel 2007, follow these steps:
That's it. What Excel technically does is to add a text box, the exact same size as the cell you selected in step 1, over the top of the cell. This text box is transparent so that the cell contents show through, but it has borders applied so that you see the drop shadow.
If you are using Excel 2007, which doesn't have a Drawing toolbar, then you are pretty much out of luck as far as a simple answer goes. Even searching through the tools available for the Quick Access toolbar, there is no command that functions the same as the Shadow Style tool on the old Drawing toolbar. The best you can do is to follow these general steps:
This, of course, could get a bit tedious over time. For this reason, you may want to use a macro to actually perform the steps. The following macro will add a drop shadow to whatever range you have selected in the worksheet.
Sub AddDropShadows()
Dim ar As Range
For Each ar In Selection.Areas
AddDrop ar
Next ar
End Sub
Sub AddDrop(rng As Range, _
Optional vShadowType = msoShadow14, _
Optional vSchemeColor = 55)
With rng.Parent.Shapes.AddShape( _
msoShapeRectangle, rng.Left, rng.Top, _
rng.Width, rng.Height)
.Fill.Visible = msoFalse
.Shadow.Obscured = msoTrue
.Shadow.Type = vShadowType
.Shadow.ForeColor.SchemeColor = vSchemeColor
.Shadow.Visible = msoTrue
.ThreeD.Visible = msoFalse
End With
End Sub
There is one thing that you should know about adding drop shadows to cells in Excel 2007: The shadow, itself, is not as "smart" as in earlier versions of Excel. When adding a drop shadow in Excel 2003, for instance, the shadow is appears at the bottom and right side of the shape added, as if the shape is filled. In Excel 2007 the drop shadow is for all four sides, so it looks a bit unprofessional when applied to a cell.
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (3407) applies to Microsoft Excel versions: 97 2000 2002 2003 2007
Make Home Buying Less Stressful! Why make home buying harder than it needs to be? Put your mind at ease—discover all the questions you need to ask to make the best buying decision.