Is there a way to print formulas? For instance, say I have some conditional formulas in
c3:c67. Is there any way to output those formulas to a printer? I don’t need the results of
the formulas, just the formulas. I have searched through the Excel Help, and in this instance
it is of no help. I would have thought this would be part of the auditing — but, if so, I have not
been able to discover how to use it. Any thoughts greatly appreciated.
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Printing Cell Formulas (97, 2000)
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Printing Cell Formulas (97, 2000)
- This topic has 4 replies, 4 voices, and was last updated 23 years ago.
AuthorTopicWSthomascox
AskWoody LoungerMay 21, 2002 at 11:36 pm #371218Viewing 1 reply threadAuthorReplies-
WSRuthCallcottMVP
AskWoody Lounger -
WSMichael Evans
AskWoody Lounger
-
-
WSJohnBF
AskWoody LoungerMay 22, 2002 at 2:45 am #589458You have good answers from Ruth and Michael, but if you are looking specifically for -conditional formulas-, I don’t think Options, View, Formulas, or Ctrl-~ does it. See this Post from Hans Pottel for a msgbox solution to Conditional formats. Partly for my own curiosity, I’ll see if I can rewrite Hans’ code to post the formulas to a new sheet as text. (Don’t wait up.)
-
WSJohnBF
AskWoody LoungerMay 22, 2002 at 2:54 pm #589461Edited
Here’s a rewrite of Hans code, ALL credit due to him. Instead of posting to a new sheet, this pastes the formulas as text offset to the right:
Sub ReadCndtlFormats()
Dim rngCFCs As Range, rngCell As Range
Dim intNo As Integer, intCols As Integer
Dim strQ As String, strCFForm1 As String, strCFForm2 As String
‘Type: xlCellValue or xlExpression
‘Operator: xlBetween, xlEqual, xlGreater, xlGreaterEqual, xlLess, xlLessEqual,
‘ xlNotBetween or xlNotEqualApplication.ScreenUpdating = False
On Error Resume Next
If Selection.Cells.Count = 1 Then
If MsgBox(“Just this cell?”, vbYesNoCancel + vbQuestion, “Conditional Formats”) = vbYes Then
If ActiveCell.FormatConditions.Count > 0 Then
Set rngCFCs = ActiveCell
Else:
Err.Raise 1004
End If
Else
Exit Sub
End If
Else
Set rngCFCs = Selection.SpecialCells(xlCellTypeAllFormatConditions)
End IfIf Err.Number = 1004 Then
Beep
MsgBox “No conditional formatting”
Exit Sub
End IfintCols = Application.InputBox(“Specify number of columns” & vbLf & _
“to the right of the selection” & vbLf & ” to paste formulas: “, _
“Conditional Format Formula Copy”, , , , , , 1)
For Each rngCell In rngCFCs
intNo = rngCell.FormatConditions.Count
strQ = “”
For intNo = 1 To intNo
If intNo > 1 Then strQ = strQ & vbLf
strQ = strQ & “Condition ” & Str(intNo) & “: ”
strCFForm1 = rngCell.FormatConditions(intNo).Formula1
strCFForm2 = rngCell.FormatConditions(intNo).Formula2
Select Case rngCell.FormatConditions(intNo).Type
Case xlCellValue
strQ = strQ & “CellValue is ”
Select Case rngCell.FormatConditions(intNo).Operator
Case xlBetween
strQ = strQ & “Between ”
strQ = strQ & strCFForm1 & ” and ” & strCFForm2
Case xlEqual
strQ = strQ & “Equal to ” & strCFForm1
Case xlGreater
strQ = strQ & “Greater than ” & strCFForm1
Case xlGreaterEqual
strQ = strQ & “Greater than or equal to ” & strCFForm1
Case xlLess
strQ = strQ & “Less than ” & strCFForm1
Case xlLessEqual
strQ = strQ & “Less than or equal to ” & strCFForm1
Case xlNotBetween
strQ = strQ & “Not between ” & strCFForm1 & ” and ” & strCFForm2
Case xlNotEqual
strQ = strQ & “Not equal to ” & strCFForm1
End Select
Case xlExpression
strQ = strQ & “Formula is ” & strCFForm1
End Select
Next intNo
rngCell.Offset(0, intCols).Value = “Cell ” & rngCell.Address & “: ” & “Conditional Format ” & vbLf & strQ
With rngCell.Offset(0, intCols).EntireColumn
.ColumnWidth = 100 ‘ annoying
.WrapText = True
.AutoFit
End With
Next rngCell
Application.ScreenUpdating = True
End Sub
-
Viewing 1 reply thread -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Meta and Yandex secretly tracked billions of Android users
by
Alex5723
20 minutes ago -
MS-DEFCON 2: Do you need that update?
by
Susan Bradley
28 minutes ago -
What Terminal Is Southwest at Austin Airport? Find Complete AUS Terminal Info (Awaiting moderation)
by
airlinesterminaloffice1
1 hour, 26 minutes ago -
What Terminal Is Southwest at Austin Airport? Find Complete AUS Terminal Info (Awaiting moderation)
by
airlinesterminaloffice1
1 hour, 30 minutes ago -
CD/DVD drive is no longer recognized
by
WSCape Sand
11 hours, 49 minutes ago -
Windows 11 24H2 Default Apps stuck on Edge and Adobe Photoshop
by
MikeBravo
14 hours, 38 minutes ago -
North Face and Cartier customer data stolen in cyber attacks
by
Alex5723
12 hours, 44 minutes ago -
What is wrong with simple approach?
by
WSSpoke36
5 hours, 16 minutes ago -
Microsoft-Backed Builder.ai Set for Bankruptcy After Cash Seized
by
Alex5723
1 day ago -
Location, location, location
by
Susan Bradley
1 hour, 50 minutes ago -
Cannot get a task to run a restore point
by
CWBillow
1 day, 1 hour ago -
Frustrating search behavior with Outlook
by
MrJimPhelps
16 hours, 18 minutes ago -
June 2025 Office non-Security Updates
by
PKCano
1 day, 12 hours ago -
Secure Boot Update Fails after KB5058405 Installed
by
SteveIT
8 hours, 44 minutes ago -
Firefox Red Panda Fun Stuff
by
Lars220
1 day, 12 hours ago -
How start headers and page numbers on page 3?
by
Davidhs
1 day, 22 hours ago -
Attack on LexisNexis Risk Solutions exposes data on 300k +
by
Nibbled To Death By Ducks
1 day, 1 hour ago -
Windows 11 Insider Preview build 26200.5622 released to DEV
by
joep517
2 days, 7 hours ago -
Windows 11 Insider Preview build 26120.4230 (24H2) released to BETA
by
joep517
2 days, 7 hours ago -
MS Excel 2019 Now Prompts to Back Up With OneDrive
by
lmacri
1 day, 21 hours ago -
Firefox 139
by
Charlie
1 day, 13 hours ago -
Who knows what?
by
Will Fastie
16 hours, 2 minutes ago -
My top ten underappreciated features in Office
by
Peter Deegan
2 days, 8 hours ago -
WAU Manager — It’s your computer, you are in charge!
by
Deanna McElveen
1 hour, 41 minutes ago -
Misbehaving devices
by
Susan Bradley
1 day, 3 hours ago -
.NET 8.0 Desktop Runtime (v8.0.16) – Windows x86 Installer
by
WSmeyerbos
3 days, 14 hours ago -
Neowin poll : What do you plan to do on Windows 10 EOS
by
Alex5723
12 hours, 54 minutes ago -
May 31, 2025—KB5062170 (OS Builds 22621.5415 and 22631.5415 Out-of-band
by
Alex5723
3 days, 12 hours ago -
Discover the Best AI Tools for Everything
by
Alex5723
2 days, 11 hours ago -
Edge Seems To Be Gaining Weight
by
bbearren
3 days, 2 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.