-
WSDoryO
AskWoody LoungerThis looks really awful but it works, avoids all the #VALUE and #NA stuff:
=ISNA(HLOOKUP(“overdue”,A1:D1,1,FALSE))=FALSE
-
WSDoryO
AskWoody LoungerCreate an Excel template (*.XLT) with macros and a desktop shortcut pointing to it. User’s click the shortcut and a copy of the template opens in Excel. Off you go… Not exactly transparent, but I don’t understand what event “starts” your application.
If you write a VB app you can use Excel application objects without displaying them to the user.
-
WSDoryO
AskWoody LoungerYou could also use a data filter to hide the blank rows prior to printing.
I have a big long price list that the users enter quantities on. Then they click a button that limits the visible rows to only those where Quantity>0. The button is actually a toggle that either hides or shows the “blank” rows. I don’t recommend using Autofilter — buggy results and funky little drop-down arrows in the column heads — I just coded my own filter in the macro and apply it or remove it.
Then what you see is what you get when you print.
This is basically the macro attached to the button:
If ActiveSheet.FilterMode Then
ActiveSheet.ShowAllData
ActiveSheet.Shapes(“ViewButton”).Select
Selection.Characters.Text = “Short List”
Range(“D7”).SelectElse
Range(“data”).AdvancedFilter Action:=xlFilterInPlace, CriteriaRange:=Range(“Worksheet!Criteria”), Unique:=False
ActiveSheet.Shapes(“ViewButton”).Select
Selection.Characters.Text = “Long View”
Range(“D7”).SelectEnd If
-
WSDoryO
AskWoody Lounger=if(FeelBetter(“You”),FeelBetter(“Me”), ”
“)
-
WSDoryO
AskWoody LoungerMaybe you could use “Mail Merge” in Word to merge the data from a named range in the Excel sheet to a “catalog” document in Word. Then formatting would be completely handled on the Word side.
This would, however, require the users to do the “merge” action to create the final version. They might not like that.
PLAN C: Get all that “not important” formatted text into the Excel workbook and skip Word altogether. You can make a spreadsheet look a lot like that .DOC with features like:
– merge cells
– word wrap
– headers/footers
– insert graphics
– print to fit within one page
– etc…I’ve had to completely rework a number of Office applications because of bizarre, inexplicable errors that I just couldn’t find the cause of. Sometimes you find the conditions that cause the bug, but you can’t fix the bug, so you have to redesign your app to avoid those conditions. At some point I’d rather switch than fight.
I have had problems with font size CHANGES WITHIN CELLS in Excel causing incorrect print formatting.
-
WSDoryO
AskWoody LoungerUse nested SUM and IF functions if you have multiple criteria:
http://support.microsoft.com/default.aspx?…b;en-us;Q275165Using an array function like this can check values against multiple criteria before summing…
{=SUM(IF(A1:A10>=1,IF(A1:A10<=10,A1:A10,0)))}An array formula like this must be entered with Ctrl-Shift-Enter to get the the 'curly brackets' to appear. No curlies = no array calculation = no work.
Basically, the IF criteria are applied to each cell in the range and the SUM adds up all the values that pass the IFs.
RE: criteria for blank cells
This array formula does a count of cells with negative values or blanks:
{=SUM(IF(A1:A10<0,1,IF(ISBLANK(A1:A10),1,0)))}
![]() |
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 |

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
-
.NET 8.0 Desktop Runtime (v8.0.16) – Windows x86 Installer
by
WSmeyerbos
58 minutes ago -
Neowin poll : What do you plan to do on Windows 10 EOS
by
Alex5723
20 minutes ago -
May 31, 2025—KB5062170 (OS Builds 22621.5415 and 22631.5415 Out-of-band
by
Alex5723
51 minutes ago -
Discover the Best AI Tools for Everything
by
Alex5723
31 minutes ago -
Edge Seems To Be Gaining Weight
by
bbearren
24 minutes ago -
Rufus is available from the MSFT Store
by
PL1
22 hours, 34 minutes ago -
Microsoft : Ending USB-C® Port Confusion
by
Alex5723
1 day ago -
KB5061768 update for Intel vPro processor
by
drmark
7 hours, 9 minutes ago -
Outlook 365 classic has exhausted all shared resources
by
drmark
3 hours, 20 minutes ago -
My Simple Word 2010 Macro Is Not Working
by
mbennett555
20 hours, 29 minutes ago -
Office gets current release
by
Susan Bradley
23 hours, 6 minutes ago -
FBI: Still Using One of These Old Routers? It’s Vulnerable to Hackers
by
Alex5723
2 days, 13 hours ago -
Windows AI Local Only no NPU required!
by
RetiredGeek
1 day, 21 hours ago -
Stop the OneDrive defaults
by
CWBillow
2 days, 14 hours ago -
Windows 11 Insider Preview build 27868 released to Canary
by
joep517
2 days, 23 hours ago -
X Suspends Encrypted DMs
by
Alex5723
3 days, 2 hours ago -
WSJ : My Robot and Me AI generated movie
by
Alex5723
3 days, 2 hours ago -
Botnet hacks 9,000+ ASUS routers to add persistent SSH backdoor
by
Alex5723
3 days, 3 hours ago -
OpenAI model sabotages shutdown code
by
Cybertooth
3 days, 3 hours ago -
Backup and access old e-mails after company e-mail address is terminated
by
M W Leijendekker
2 days, 15 hours ago -
Enabling Secureboot
by
ITguy
2 days, 22 hours ago -
Windows hosting exposes additional bugs
by
Susan Bradley
3 days, 11 hours ago -
No more rounded corners??
by
CWBillow
3 days, 7 hours ago -
Android 15 and IPV6
by
Win7and10
2 days, 21 hours ago -
KB5058405 might fail to install with recovery error 0xc0000098 in ACPI.sys
by
Susan Bradley
3 days, 23 hours ago -
T-Mobile’s T-Life App has a “Screen Recording Tool” Turned on
by
Alex5723
4 days, 2 hours ago -
Windows 11 Insider Preview Build 26100.4202 (24H2) released to Release Preview
by
joep517
3 days, 21 hours ago -
Windows Update orchestration platform to update all software
by
Alex5723
4 days, 9 hours ago -
May preview updates
by
Susan Bradley
3 days, 21 hours ago -
Microsoft releases KB5061977 Windows 11 24H2, Server 2025 emergency out of band
by
Alex5723
3 days, 12 hours ago
Recent blog posts
Key Links
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
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.