-
WSroger.crawley
AskWoody LoungerMy current formula approach cannot help because it is limited to sorting numeric values. It may be possible to adapt but that would be far more complex than any VBA solution would ever be.
-
WSroger.crawley
AskWoody LoungerAttached is a solution using only 2 columns, as required.
Each column requires a fairly complex array formula which essentially tests for the next customer in the sequence from either column and then displays either the number (if it is is in both source columns) or ‘New’ or ‘Lost’ if it is in only 1.
The formula also contains an extra if statement to test if the maximum customer number has already been reached. This would allow for an output table to built that does not need to be the exact size. Further power could be added to this solution by using dynamic names for the data in columns A and B, this would ensure that once created the formulae would always include ALL customer numbers in the calculation.
I hope this helps
-
WSroger.crawley
AskWoody LoungerNovember 6, 2007 at 5:18 pm in reply to: UsedRange includes hidden empty columns (2003 SP2) #1082662Hans,
This was one of the many things I tried yesterday to no avail. However, I just tried it again and today it works.
Thanks,
-
WSroger.crawley
AskWoody LoungerSteve,
Thanks for that response. Unfortunately what I should have added in my original post is that I do not want to have the responsibility of producing this file, the intention is for a couple of users to do it by clicking on the button I provide them.
-
WSroger.crawley
AskWoody LoungerI hadn’t really thought about the add-in option, I think that is what I shall do.
Thanks for the suggestion
-
WSroger.crawley
AskWoody LoungerThanks for the suggestion.
I have finally included this functionality and have settled on a Selection_Change event identifying help prompts to find the desired help message from a library and display it in a message box. I wanted a solution which did not involve another file that had to always be associated with this file and I also have no desire to be the long-term administrator of this Tool so I wanted to make it as easy as possible to add and edit help text.
Thanks again,
-
WSroger.crawley
AskWoody LoungerHans,
Thanks for your response. It was along the lines of what I was thinking would be an improved solution. However, I thought it worthwhile to see if any cleaner approaches could be thought of.
I have incorporated this with a Selection_Change event and a test for a specific 4 character string at the start of the Target.Value with the text to lookup and display stored as the remainder of the string. This should:
1. allow me to limit the code required to a Selection_Change event on each worksheeet and the global ShowHelp macro
2. eliminate the possibility to leave orphaned buttons
3. make it much easier to add, delete and copy help text to cells
4. make it easier to create and edit help text
The only downside for me is losing the image which is very similar to Excel’s Help icon.I am planning to incorporate this approach into the tool unless any further comments or suggestions are made before I get around to it.
Thanks again,
-
WSroger.crawley
AskWoody LoungerI use the following code to cycle through every cell in a selection and display the precedent arrows. If you run this on your ‘Source’ worksheet it should do what you are looking for.
Sub RangeDependentsShow()
Dim rngCell1 As Range
Application.ScreenUpdating = False
For Each rngCell1 In Selection
rngCell1.ShowDependents
Next rngCell1
Beep
Application.ScreenUpdating = True
End Sub -
WSroger.crawley
AskWoody LoungerJefferson/Hans,
Thanks for your help.
Hans I was in the middle of replying to Jefferson to ask how I broke the link to the custom template I was trying “” instead of “Normal” when I saw your reply that cleared the muddy water for me.
To answer some of the points you raised:
The users of the template have very basic PC skills so I wanted a solution that didn’t rely on any external source for the numbering and also on that would allow them to reset or change the number if absolutely necessary. This was also part of my decision to use the built-in properties as was my inexperience in VBA for Word. Finally, as far as I know I also do not need to worry about metadata as the electronic file doesn’t leave the company.Thanks again for your help,
-
WSroger.crawley
AskWoody LoungerCindy,
I tested it before I posted it so the procedure should work right now as it creates the object reference for itself.
-
WSroger.crawley
AskWoody LoungerI picked up some code from somewhere and adapted it to set my needs, I have edited it to suit your requirements:
Sub TidyVBA()
‘ Removes VBA Modules from Workbook
Dim WBCodeItem As Object
‘ Create an object reference for the VB Project -
WSroger.crawley
AskWoody LoungerHans,
Thanks for your comments.
- I thought I may have been barking up a non-existent tree as I had already spent a lot of time scouring the object browser. I save a copy of the master and remove the unnecessary worksheets, forms and modules during the process, due to the complexity of the file I think this is the only reasonable approach. I think the answer to my problem lies in removing only redundant actions from my event macros so that the child file can still manipulate the toolbar.
- I never really thought about taking a simple approach, it works fine.
Thanks again.
-
WSroger.crawley
AskWoody LoungerLegare, Brett and Steve,
Thanks for your comments. Sorry I haven’t replied earlier but it is a work problem and I had no desire to follow the thread from home over th weekend or on my day off yesterday.
I had completely overlooked the relevance of Cancel in the event. Thank you for pointing out the error of my ways.
-
WSroger.crawley
AskWoody LoungerThat works fine. I knew there was more than likely an easier way but neither a search through the help files or the Lounge came up trumps.
Thanks.
-
WSroger.crawley
AskWoody LoungerAn alternative way?
1. Design a user form to suit your purpose.
2. Assign to a shortcut key.
3. With the appropriate mouse and driver, assign this combination to one of the mouse’s buttons.I have designed a very personal utility for myself in this way and much prefer the design flexibility that the user form provides when compared to a menu.
Hope this provides some food for thought,
![]() |
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
-
Upgrade from Windows 10 to 11
by
Holdsworth8
59 minutes ago -
Microsoft : AI-powered deception: Emerging fraud threats and countermeasures
by
Alex5723
3 hours, 50 minutes ago -
0patch
by
WSjcgc50
18 minutes ago -
Devices might encounter blue screen exception with the recent Windows updates
by
Susan Bradley
56 minutes ago -
Windows 11 Insider Preview Build 22631.5261 (23H2) released to Release Preview
by
joep517
6 hours, 49 minutes ago -
Problem opening image attachments
by
RobertG
8 hours, 23 minutes ago -
advice for setting up a new windows computer
by
routtco1001
23 hours, 9 minutes ago -
It’s Identity Theft Day!
by
Susan Bradley
3 hours, 25 minutes ago -
Android 15 require minimum 32GB of storage
by
Alex5723
1 day, 3 hours ago -
Mac Mini 2018, iPhone 6s 2015 Are Now Vintage
by
Alex5723
1 day, 4 hours ago -
Hertz says hackers stole customer credit card and driver’s license data
by
Alex5723
1 day, 4 hours ago -
Firefox became sluggish
by
Rick Corbett
1 day, 1 hour ago -
Windows 10 Build 19045.5794 (22H2) to Release Preview Channel
by
joep517
1 day, 8 hours ago -
Windows 11 Insider Preview Build 22635.5235 (23H2) released to BETA
by
joep517
1 day, 9 hours ago -
A Funny Thing Happened on the Way to the Forum
by
bbearren
6 hours, 16 minutes ago -
Download speeds only 0.3Mbps after 24H2 upgrade on WiFi and Ethernet
by
John
50 minutes ago -
T-Mobile 5G Wireless Internet
by
WSmmi16
6 hours, 57 minutes ago -
Clock missing above calendar in Windows 10
by
WSCape Sand
8 hours, 9 minutes ago -
Formula to Calculate Q1, Q2, Q3, or Q4 of the Year?
by
WSJon5
1 day, 23 hours ago -
The time has come for AI-generated art
by
Catherine Barrett
1 day, 3 hours ago -
Hackers are using two-factor authentication to infect you
by
B. Livingston
1 day, 13 hours ago -
23 and you
by
Max Stul Oppenheimer
1 day, 20 hours ago -
April’s deluge of patches
by
Susan Bradley
42 minutes ago -
Windows 11 Windows Updater question
by
Tex265
1 hour, 3 minutes ago -
Key, Key, my kingdom for a Key!
by
RetiredGeek
3 days, 5 hours ago -
Registry Patches for Windows 10
by
Drcard:))
3 days, 10 hours ago -
Cannot get line length to NOT wrap in Outlining in Word 365
by
CWBillow
2 days, 16 hours ago -
DDU (Display Driver Uninstaller) updates
by
Alex5723
2 days, 2 hours ago -
Align objects on a OneNote page
by
CWBillow
3 days, 15 hours ago -
OneNote Send To button?
by
CWBillow
3 days, 16 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.