-
WSGeneO
AskWoody LoungerIn the Workbook_BeforePrint event, use a statement like:
Dim strBook_Path+Name as String
strBook_Path+Name = ActiveWorkBook.fullname
ActiveSheet.PageSetup.LeftFooter = strBook_Path+NameYou can vary the “LeftFooter” statement to be any one of the six Header/Footer locations.
-
WSGeneO
AskWoody LoungerSorry, this sounds serious and all I can offer is empathy, but I thought I’d let you know it’s good to see your signature line back on the boards.
-
WSGeneO
AskWoody LoungerA common problem when moving or copying worksheets is that the defined names get carried along. Check your copied sheet for defined names that have references pointing back to the original workbook. Delete those names, and your ‘Links’ should go away.
-
WSGeneO
AskWoody LoungerIf I understand your question, you’re trying to define a Worksheet level name. To do that, you need to prefix your name with “worksheet_name!”(no quotes)
For example, to define a name of ‘TEST’ for three different sheets called Sheet1, Sheet2, Sheet3, you’d Insert / Name / Define on Sheet1. The name you type in would be “Sheet1!TEST” the reference would be whatever range you wanted on Sheet1. Then go to Sheet2 and repeat this process except this time you’d type in “Sheet2!TEST” for your name. Repeat for Sheet3. You would now have three different named ranges all with the name TEST but refering to different ranges depending upon which sheet was active. -
WSGeneO
AskWoody LoungerIf you don’t have too big an area to examine, you could try Tools / Options / View and check on the Formulas box. That would allow you to do a quick visual examination of all formula cells to look for external references. Other than that, there are a couple of VBA tools around that will locate / list links. I don’t have the references handy at the moment.
-
WSGeneO
AskWoody LoungerNot to be picky… but shouldn’t the first line in your example be:
DIM intCounter as Integer
OR
DIM iCounter as Integer -
WSGeneO
AskWoody LoungerYou’d probably be best served by addressing this question to the author, John Walkenbach, at: john@j-walk.com
-
WSGeneO
AskWoody LoungerThis situation occurs when someone chooses Window / New Window on the menu bar. A second view of the workbook is made and the (1) and (2) suffixes are generated. If the workbook is closed with both windows active, you’ll get the situation you have. Just open the workbook, choose one of the two names in the Window list and close that view by clicking the ‘X’ in the upper right of the that window — NOT the one in system bar for Excel itself. The easiest way is to go to Window / Arrange. Choose Horizontal and then you’ll see both windows with their respective close buttons. Close one copy then when you close the other, it should remain ‘single’.
-
WSGeneO
AskWoody LoungerI see this occasionally on Novell servers where I work. It seems to have something to do with Novell and antivirus products. We had this problem with some of the updates from McAfee. It seems to come and go with no logical pattern. Usually, the file that was created could be immediately re-opened and saved as the original filename without consequence.
-
WSGeneO
AskWoody LoungerI agree — the examples in the Help files aren’t always what one might expect from ‘pros’.
-
WSGeneO
AskWoody LoungerLeif’s suggestion regarding a residual module is probably your problem, but if it isn’t, you may have inadvertently activated one of the Workbook or Worksheet event stubs.
In the VBE, select the workbook and each sheet in turn and make sure you don’t have a stub that got generated during your ‘experimenting’. Example might look like:
Private Sub Worksheet_SelectionChange(ByVal Target as Excel.range)
End Sub -
WSGeneO
AskWoody LoungerYuk! — I agree…
That’s why I like the ‘Advanced Filter’ approach. I’ve also used variations of your suggestion, but my brain was in 1/3 speed when I posted my response. -
WSGeneO
AskWoody LoungerTwo quick methods come to mind:
Sort your data by those three columns and do a manual inspection / deletion – OR – use the Advanced Filter (Data / Filter / Advanced Filter) to filter the list to unique values then copy this list to a new area. -
WSGeneO
AskWoody Loungeroff the topic????
I always thought SUM(IF was the same as SUMIF — just smarter
-
WSGeneO
AskWoody LoungerAnother highly flexible approach is to use array formulae constructed in the form of:
=Sum(If(CompareRange operator condition),If(CompareRange2 operator condition2),Sumrange,0),0)).
This example would ‘AND’ the conditions. You could add the two ‘IF’ statements together to ‘OR’ the conditions. Look under TOOLS/Wizard for the Conditional Sum wizard. Play with this and see what formulae it builds for different circumstances and you should be able to get a good idea of how this works.
HTH,
![]() |
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 |

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
-
Finding Microsoft Office 2021 product key
by
Kathy Stevens
22 minutes ago -
Over-the-Top solves it!
by
RetiredGeek
9 hours, 38 minutes ago -
To Susan – Woody Leonhard, the “Lionhearted”
by
Myst
16 hours, 39 minutes ago -
Extracting Data From All Sheets
by
WSJon5
18 hours, 14 minutes ago -
Use wushowhide in Windows 11 24H2?
by
Tex265
18 hours, 22 minutes ago -
Hacktool:Win32/Winring0
by
Marvel Wars
5 hours, 3 minutes ago -
Microsoft Defender as Primary Security Question
by
blueboy714
2 hours, 44 minutes ago -
USB printers might print random text with the January 2025 preview update
by
Alex5723
20 hours, 52 minutes ago -
Google’s 10-year-old Chromecast is busted, but a fix is coming
by
Alex5723
1 day, 6 hours ago -
Expand the taskbar?
by
CWBillow
1 day, 6 hours ago -
Gregory Forrest “Woody” Leonhard (1951-2025)
by
Susan Bradley
21 minutes ago -
March 2025 updates are out
by
Susan Bradley
7 hours, 31 minutes ago -
Windows 11 Insider Preview build 26120.3380 released to DEV and BETA
by
joep517
2 days ago -
Update Firefox to prevent add-ons issues from root certificate expiration
by
Alex5723
2 days, 7 hours ago -
Latest Firefox requires Password on start up
by
Gordski
2 days, 1 hour ago -
Resolved : AutoCAD 2022 might not open after updating to 24H2
by
Alex5723
2 days, 20 hours ago -
Missing api-ms-win-core-libraryloader-11-2-1.dll
by
IreneLinda
1 day, 18 hours ago -
How Much Daylight have YOU Saved?
by
Nibbled To Death By Ducks
1 day, 21 hours ago -
A brief history of Windows Settings
by
Simon Bisson
1 day, 15 hours ago -
Thunderbolt is not just for monitors
by
Ben Myers
1 day, 14 hours ago -
Password Generators — Your first line of defense
by
Deanna McElveen
1 day, 19 hours ago -
AskWoody at the computer museum
by
Will Fastie
19 hours, 19 minutes ago -
Planning for the unexpected
by
Susan Bradley
1 day, 20 hours ago -
Which printer type is the better one to buy?
by
Bob99
2 days, 21 hours ago -
Upgrading the web server
by
Susan Bradley
2 days, 20 hours ago -
New Windows 11 24H2 Setup – Initial Win Update prevention settings?
by
Tex265
3 days, 15 hours ago -
Creating a Google account
by
DavidofIN
3 days, 14 hours ago -
Undocumented “backdoor” found in Bluetooth chip used by a billion devices
by
Alex5723
3 days, 20 hours ago -
Microsoft Considering AI Models to Replace OpenAI’s in Copilot
by
Alex5723
4 days, 7 hours ago -
AI *emergent misalignment*
by
Alex5723
4 days, 8 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.