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
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
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, 10 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
-
KB5058379 / KB 5061768 Failures
by
crown
4 hours, 9 minutes ago -
Windows 10 23H2 Good to Update to ?
by
jkitc
6 hours, 49 minutes ago -
At last – installation of 24H2
by
Botswana12
7 hours, 33 minutes ago -
MS-DEFCON 4: As good as it gets
by
Susan Bradley
36 minutes ago -
RyTuneX optimize Windows 10/11 tool
by
Alex5723
19 hours, 45 minutes ago -
Can I just update from Win11 22H2 to 23H2?
by
Dave Easley
13 hours, 5 minutes ago -
Limited account permission error related to Windows Update
by
gtd12345
1 day, 9 hours ago -
Another test post
by
gtd12345
1 day, 9 hours ago -
Connect to someone else computer
by
wadeer
1 day, 3 hours ago -
Limit on User names?
by
CWBillow
1 day, 7 hours ago -
Choose the right apps for traveling
by
Peter Deegan
20 hours, 45 minutes ago -
BitLocker rears its head
by
Susan Bradley
4 hours, 46 minutes ago -
Who are you? (2025 edition)
by
Will Fastie
3 hours, 42 minutes ago -
AskWoody at the computer museum, round two
by
Will Fastie
23 hours, 7 minutes ago -
A smarter, simpler Firefox address bar
by
Alex5723
1 day, 19 hours ago -
Woody
by
Scott
2 days, 5 hours ago -
24H2 has suppressed my favoured spider
by
Davidhs
4 hours, 22 minutes ago -
GeForce RTX 5060 in certain motherboards could experience blank screens
by
Alex5723
2 days, 19 hours ago -
MS Office 365 Home on MAC
by
MickIver
2 days, 13 hours ago -
Google’s Veo3 video generator. Before you ask: yes, everything is AI here
by
Alex5723
3 days, 9 hours ago -
Flash Drive Eject Error for Still In Use
by
J9438
4 hours, 7 minutes ago -
Windows 11 Insider Preview build 27863 released to Canary
by
joep517
4 days, 4 hours ago -
Windows 11 Insider Preview build 26120.4161 (24H2) released to BETA
by
joep517
4 days, 4 hours ago -
AI model turns to blackmail when engineers try to take it offline
by
Cybertooth
3 days, 7 hours ago -
Migrate off MS365 to Apple Products
by
dmt_3904
3 days, 8 hours ago -
Login screen icon
by
CWBillow
2 days, 23 hours ago -
AI coming to everything
by
Susan Bradley
13 hours, 35 minutes ago -
Mozilla : Pocket shuts down July 8, 2025, Fakespot shuts down on July 1, 2025
by
Alex5723
4 days, 19 hours ago -
No Screen TurnOff???
by
CWBillow
4 days, 20 hours ago -
Identify a dynamic range to then be used in another formula
by
BigDaddy07
29 minutes 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.