Cover | Table of Contents | Colophon
xlVeryHidden. From the VBE (Tools →
Macro → Visual Basic Editor or Alt/Option-F11), make sure
the Project Explorer window is visible by selecting View →
Project Explorer. Find the name of your workbook within the Project
Explorer and expand its hierarchy by clicking the + to the left of
the workbook's name. Expand the Microsoft Excel
Objects folder within to reveal all your
workbook's worksheets.
Visible
property at the very bottom. Click the value box on the
right associated with the Visible property and
select the last option, 2
-
xlSheetVeryHidden, as shown in Figure 1-9. Press
Alt/
-Q to save your changes and return to Excel. The
sheet will no longer be visible via the Excel interface and
won't appear as a choice under Format
-K. Although this method is probably
sufficient for limited instances in which you don't
have too many sheets and they won't change often,
you'll be stuck maintaining your index by hand.Sheet object. Insert a new
worksheet into your workbook and name it something
appropriate—Index, for instance.
Right-click the index sheet's tab and select View
Code from the context menu. Enter the following Visual Basic code
(Tools → Macro → Visual Basic Editor or
Alt/Option-F11):Private Sub Worksheet_Activate( )
Dim wSheet As Worksheet
Dim l As Long
l = 1
With Me
.Columns(1).ClearContents
.Cells(1, 1) = "INDEX"
.Cells(1, 1).Name = "Index"
End With
For Each wSheet In Worksheets
If wSheet.Name <> Me.Name Then
l = l + 1
With wSheet
.Range("A1").Name = "Start" & wSheet.Index
.Hyperlinks.Add Anchor:=.Range("A1"), Address:="", SubAddress:= _
"Index", TextToDisplay:="Back to Index"
End With
Me.Hyperlinks.Add Anchor:=Me.Cells(l, 1), Address:="",_
SubAddress:="Start" & wSheet.Index, TextToDisplay:=wSheet.Name
End If
Next wSheet
End Sub
-R under Mac OS X to visit the Project Explorer.
If the Properties window isn't visible, press F4 to
make it appear. Select the appropriate worksheet and visit the
-A or by clicking the gray
square at the intersecting point of column A and row 1. Then select
Format → Cells → Protection and uncheck the Locked
checkbox to remove the tick. Click OK.
=COUNTIF($A$1:$H$100,A1)>1
COUNTIF
criterion. By this we mean that the conditional formatting formula in
cell A1 will read as follows:=COUNTIF($A$1:$H$100,A1)>1
=COUNTIF($A$1:$H$100,A2)>1
=COUNTIF($A$1:$H$100,A3)>1
Private Sub Workbook_Activate( )
On Error Resume Next
With Application.CommandBars("MyCustomToolbar")
.Enabled = True
.Visible = True
End With
On Error GoTo 0
End Sub
Private Sub Workbook_Deactivate( )
On Error Resume Next
Application.CommandBars("MyCustomToolbar").Enabled = False
On Error GoTo 0
End Sub
-Q.
Whenever you open or activate another workbook, your custom toolbar
disappears and isn't accessible. Reactivate the
appropriate workbook, and poof! The toolbar's back.). (Of course, these
could be any symbols you are sure are not being used in any of the
formulas.) Click Replace All. The equals sign in all the formulas on
your worksheet will be replaced with the at sign.[*] within the formulas on each worksheet. Close
all other workbooks to ensure that any formula links will include
[*], where the asterisk represents a wildcard
string.http://office.microsoft.com/Downloads/default.aspx,
and from the Add-Ins category selecting the Delete Links Wizard. The
Delete Links Wizard is designed to find and delete links such as
defined name links, hidden name links, chart links, Microsoft query
links, and object links. However, in our experience, it does not find
phantom links.INDIRECT function
enables you to reference a cell containing text that represents a
cell address. You then can use that cell as a local cell reference,
even though it gets its data from another worksheet. You can use this feature to reference the
worksheet where your list resides.INDIRECT function
enables you to reference a cell containing text that represents a
cell address. You then can use that cell as a local cell reference,
even though it gets its data from another worksheet. You can use this feature to reference the
worksheet where your list resides.=INDIRECT("Sheet1!$A$1:$A$8")TRUE or FALSE
value (checked/not checked) to their linked cell. By combining a
checkbox from the Forms toolbar with conditional formatting using the
Formula
Is option (shown in
Figure 2-1), you can turn conditional formatting on
and off via a checkbox.
Formula
Is option), conditional
formatting automatically formats a cell whenever the formula result
returns TRUE. For
this reason, any formula you use in this hack must return either
TRUE or FALSE.
Function IsFormula(Check_Cell As Range)
IsFormula = Check_Cell.HasFormula
End Function
-Q, or use the Close button in the
window's titlebar).
Now this function is available in any cell on any
worksheet in this workbook when you enter the formula
=IsFormula($A$1). You also can access the
function by selecting Insert → Function, then selecting
UserDefined from the Category option and choosing
IsFormula from the functions displayed.TRUE if the reference cell houses a formula and
FALSE if it does not.
You can use this Boolean result in conjunction with
conditional formatting so that all formulas are highlighted
automatically in a format of your choice.SUMIF function to add a range of cells that meet a
certain criterion—but only one criterion.
If you need to deal with more than one factor, you can use
an array formula.=SUM(IF($A$2:$A$100>10,IF($A$2:$A$100<20,$A$2:$A$100)))
{=SUM(IF($A$2:$A$100>10,IF($A$2:$A$100<20,$A$2:$A$100)))}=MOD(ROW( ),2)
=MOD(COLUMN( ),2)
=AND(COUNTIF($A$1:$H$100,A1)>1,CheckboxLink)