Hello, Excel experts. Is there an easy way to print the contents of all the cells in a spreadsheet as a list? (This would be useful in registering the copyright in the spreadsheet, for those who might wonder.) Back when I used SuperCalc
![]() |
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 |
-
How to print all cells as a list (2000/any)
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » How to print all cells as a list (2000/any)
- This topic has 6 replies, 4 voices, and was last updated 23 years, 8 months ago.
AuthorTopicWSjscher2000
AskWoody LoungerJuly 24, 2001 at 11:35 pm #358371Viewing 2 reply threadsAuthorReplies-
WSAndrew Cronnolly
AskWoody Lounger -
H. Legare Coleman
AskWoody PlusJuly 25, 2001 at 11:41 am #534614Can you define what you mean by “contents of all cells” and “as a list?” Do you want to print the value of the cells or the formulas? By list, do you mean each cell on a separate line down the page? If so, do you want the cells identified in some way? What do you want to do with empty cells?
-
WSdcardno
AskWoody LoungerJuly 25, 2001 at 6:43 pm #534680If you are trying to document the contents of a s/sheet, I would suggest changing to the ‘formula view’ (MS may have another name for this view):
Tools | Options | View tab | - checkbox under "Window Options"
and then print the s/sheet with row and column headings (and gridlines) turned on
File | Page Setup | Sheet tab | - two check boxes under "Print"
I question the usefulness of establishing copyright on a s/sheet, since you cannot copyright the underlying ideas, only the particular expressions of them. Reverse-engineering any s/sheet is trivial (more or less) for anyone who has seen the copyrighted sheet and is familar with the subject matter. In any event, that’s your call.
If you absolutely HAVE to have a “list” of cell contents, I would do something like the following pseudo code:
for each worksheet create a new sheet called concatenate(originalname," LIST") CellCount = counta(entire sheet) for Counter = 1 to CellCount choose each non-blank cell in original sheet in sequence on "xxx LIST" sheet Col A, Row Counter = _ relevant address of non-blank cell on "xxx" on "xxx LIST" sheet Col B, Row Counter = _ value or formula for non-blank cell on "xxx" Next Counter Next worksheet
For cells in the orignal worksheet that have formulas in them you could concatenate the formula with a string character to force them to display and print as a formula, rather than a value. This will probably also make values clearer, since the display will show either the value or an equals sign and the value, preceeded by whatever string character you have concatenated to the value…
You will have to have a way of handling worksheets with > 65K non-blank cells (if there are any) since you will run out of rows: I would suggest moving over to columns D and E.
-
WSjscher2000
AskWoody LoungerJuly 26, 2001 at 5:00 am #534734Thank you all for your responses. I guess I was ambiguous. Yes, I want basically a “source code” listing showing the cell address and cell contents (when this is a formula, as a formula), as a very long list. Given the various options, I think I’m going to dump it into a Word document, since wrapping long formulas is easier (at least for me) in Word, and I’m infinitely more familiar with VBA in Word.
As an aside on the legal issue:
[indent]
I question the usefulness of establishing copyright on a s/sheet, since you cannot copyright the underlying ideas, only the particular expressions of them.
[/indent]Well, I’m not talking about summing a list here. Any moderately complicated spreadsheet is way more than an idea. Even though Excel automates many of the hardest parts (like figuring out dependencies), there is enough original material in many spreadsheet projects to qualify for copyright protection. What someone could legally extract because it is merely an idea or is not original, will depend on the circumstances.
[indent]
Reverse-engineering any s/sheet is trivial (more or less) for anyone who has seen the copyrighted sheet and is familar with the subject matter.
[/indent]That is exactly why you might want to seek the protection of the law
-
WSjscher2000
AskWoody LoungerJuly 26, 2001 at 7:19 am #534755Here is a Word VBA module that you can import into a new Word template that will read in the contents of cells from an Excel Workbook. Maybe it will help someone. If you think of any improvements, please post them back.
Note: until you close the new document, a “hidden” instance of Excel appears in the task list (Ctrl-Alt-Del). I’m not sure how to close that in VBA, since I am not expressly opening it…
-
WSAndrew Cronnolly
AskWoody LoungerJuly 26, 2001 at 7:32 am #534756I did not read your initial post properly yesterday, so hopefully the following will be of more assistance.
You could try just printing the sheet to show formulas. If you go to Tools, Options, View and select Formulas under Window Options. Then in Page Setup, select the Sheet Tab and check Row and Column Headings. When you then print the sheet you should have a grid of the cells showing the formula in each. As a reading aid you might either print gridlines or place borders around each cell. You can set the columns to auto width to accommodate any lengthy formulae.
The following code will loop through all the used cells in a sheet and output the address and the contents. It will print the cells in row order, i.e. all used cells in Row A come first, then B etc. Note that Cell.Formula will return a value if there is no formula as such. The code outputs to the immediate window, but you change it to print to an open file, or place the output as a String into another worksheet and then print that.
Sub ListCellContents() Dim oCell As Range For Each oCell In ActiveSheet.UsedRange If Not IsEmpty(oCell.Value) Then Debug.Print oCell.Address & " " & oCell.Formula End If Next End Sub
Hope that helps
Andrew C
-
-
Viewing 2 reply threads -

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
-
A Funny Thing Happened on the Way to the Forum
by
bbearren
8 hours, 57 minutes ago -
Download speeds only 0.3Mbps after 24H2 upgrade on WiFi and Ethernet
by
John
3 hours, 41 minutes ago -
T-Mobile 5G Wireless Internet
by
WSmmi16
13 hours, 40 minutes ago -
Clock missing above calendar in Windows 10
by
WSCape Sand
16 minutes ago -
Formula to Calculate Q1, Q2, Q3, or Q4 of the Year?
by
WSJon5
12 hours, 46 minutes ago -
The time has come for AI-generated art
by
Catherine Barrett
21 hours, 29 minutes ago -
Hackers are using two-factor authentication to infect you
by
B. Livingston
2 hours, 30 minutes ago -
23 and you
by
Max Stul Oppenheimer
9 hours, 45 minutes ago -
April’s deluge of patches
by
Susan Bradley
13 hours, 56 minutes ago -
Windows 11 Windows Updater question
by
Tex265
19 hours, 42 minutes ago -
Key, Key, my kingdom for a Key!
by
RetiredGeek
1 day, 18 hours ago -
Registry Patches for Windows 10
by
Drcard:))
1 day, 23 hours ago -
Cannot get line length to NOT wrap in Outlining in Word 365
by
CWBillow
1 day, 5 hours ago -
DDU (Display Driver Uninstaller) updates
by
Alex5723
15 hours ago -
Align objects on a OneNote page
by
CWBillow
2 days, 4 hours ago -
OneNote Send To button?
by
CWBillow
2 days, 5 hours ago -
WU help needed with “Some settings are managed by your organization”
by
Peobody
2 days, 13 hours ago -
No Newsletters since 27 January
by
rog7
18 hours, 27 minutes ago -
Linux Mint Debian Edition 7 gets OEM support, death of Ubuntu-based Mint ?
by
Alex5723
1 day, 14 hours ago -
Windows Update “Areca Technology Corporation – System – 6.20.0.41”
by
Bruce
1 day, 13 hours ago -
Google One Storage Questions
by
LHiggins
21 hours, 3 minutes ago -
Button Missing for Automatic Apps Updates
by
pmcjr6142
1 day, 4 hours ago -
Ancient SSD thinks it’s new
by
WSila
1 day, 19 hours ago -
Washington State lab testing provider exposed health data of 1.6 million people
by
Nibbled To Death By Ducks
3 days, 4 hours ago -
WinRE KB5057589 fake out
by
Susan Bradley
15 hours, 16 minutes ago -
The April 2025 Windows RE update might show as unsuccessful in Windows Update
by
Susan Bradley
2 days, 12 hours ago -
Firefox 137
by
Charlie
4 hours, 19 minutes ago -
Whisky, a popular Wine frontend for Mac gamers, is no more
by
Alex5723
3 days, 17 hours ago -
Windows 11 Insider Preview build 26120.3863 (24H2) released to BETA
by
joep517
3 days, 17 hours ago -
Windows 11 Insider Preview build 26200.5551 released to DEV
by
joep517
3 days, 17 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.