-
WSMichael Evans
AskWoody LoungerThank you Hans
-
WSMichael Evans
AskWoody LoungerIt seem to me that you should be using the Worksheet_Change event on each sheet fire your macro. Passing the Target properties to a macro in a standard module should do the trick.
My worksheet does have a Worksheet_change event to fire the macro (or a comment update macro for a cell that already has a comment), that part works fine; I did not show that macro as it is working as intended. The only problem is if the user enters new data in the cell then, without pressing Enter, uses the mouse to select another cell , the data appears in the cell that was changed alright but the comment appears in the newly selected cell. I think this must be because rowInt and colInt are set by reference to the ActiveCell, what I need is a way of setting rowInt and colInt so they refer to the ActiveCell at the start of the macro and do not alter when a new ActiveCell is selected.
-
WSMichael Evans
AskWoody LoungerThanks to everyone for your help.
I am having trouble now in concatenating text and date whilst using the overwrite option; suppose I want to add “Cell updated on” and the date and also tell VBA not to overwrite the existing comment, what should the syntax be?
su
-
WSMichael Evans
AskWoody LoungerI had not thought of this as we want the usage log to see the workbook’s history, who has used it, who has altered it (I intend to add a column recording the last change made to the book, when I have the open and save bits working properly) etc. However I think you are right, it could be useful to know when someone has just looked at the book and then closed it without saving it, I added the following lines to the EnterOpenData macro after the writing of the opening date/time and username and before the reprotection of the sheet.
Application.EnableEvents = False
ActiveWorkbook.Save
Application.EnableEvents = TrueThis seems to work OK, if the workbook is closed without saving there are blank cells alongside the opening data.
-
WSMichael Evans
AskWoody LoungerThanks to you all for your advice.
I tried out the book on another machine at work with the same XL version as mine and it worked (should have thought of that earlier).
The problem was a utility called Saver that I installed years ago that puts the full path and filename in the Caption when a file is saved, I removed this and the problem went away.
Thanks again everyone for your efforts.
-
WSMichael Evans
AskWoody LoungerHans
I have now tried your workbook in XL2000 SP3 and it crashes at the save step there too unless I manually unprotect the sheet first.
-
WSMichael Evans
AskWoody LoungerHans
I am at home using XL2000 SR1 and your workbook opens alright for me but crashes when I try to save it.
Is there someone else using XL2000 who can try Hans’ workbook and see if they can save it?
Thanks to all.
-
WSMichael Evans
AskWoody LoungerHans
You are right of course, I had used the colon to join the Protect call with its MsgBox so they could be remarked out together, without realising VB would think it indicated a nonexistant destination.However here is a version with that error removed and the problem persists.
-
WSMichael Evans
AskWoody LoungerMy theory that Protect does not work in XL2000 SP3 is wrong. Attached is my workbook with macros that Protect and Unprotect the worksheet, and they work fine as long as they are run alone. But when they are called from the other macros, FormatUsageLog, EnterOpenData, or EnterSaveData they seem to do nothing. If the worksheet is unprotected before it is saved everything is fine, but if the worksheet is protected I get Error 1004. Can anyone tell me what is going on?
-
WSMichael Evans
AskWoody LoungerHans and Steve
The problem arose at work where I use XL2000 SP3; at home I have XL2000 SR1 and the code works fine.
I will not be at work again until next week but I will post the workbook then.
However suppose my theory is right and there is a glitch in 2000 SR3, if I send a workbook with a macro written with 2000 SR3 and someone with a different version of XL opens it and runs it will not the macro run with the VBA in that person’s version so if that version is glitch-free the problem will not show up? Or am I misunderstanding how macros, workbooks and versions interact?
-
WSMichael Evans
AskWoody LoungerThank you Hans
I am not using a password so that is not the problem. What version of XL are you using? The only think I can think of is that Protect is one of those things that does not work in some versions of XL ( I think TRIM was another though I cannot remember which version it was). If anyone else is still using 2000 SP3 so they could check this.
Thanks again
-
WSMichael Evans
AskWoody LoungerThanks to you both
-
WSMichael Evans
AskWoody LoungerJan
It did not work when I first made the changes but now it seems to be doing so. I will experiment further.
I can see a further problem though, this is to be a template and if I use Workbooks(“UsageLogTest.XLS”) in writing in the time saved etc, this presumably will not work when the workbook is saved with a new name.
Many thanks
-
WSMichael Evans
AskWoody LoungerJan
Thanks for your reply.
I do not think that is the problem as I tried what you suggested and the error persists. I also made a copy of SaveWithoutSaver, stored it in the test book and used that macro to save so I am not changing workbooks at any stage (my original SaveWithoutSaver was in Personal.xls) and that did not get rid of the error either
-
WSMichael Evans
AskWoody Lounger(Edited by HansV to make URL clickable – see Help 19)
Thank you Hans
I could not find a listing of FaceId’s in help, however this site has them http://www.j-walk.com/ss/excel/tips/tip67.htm%5B/url%5D
![]() |
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
-
Troy Hunt of HaveIBeenPwned Phished
by
Lars220
40 minutes ago -
Microsoft Windows security auditing Code 5061
by
mpw
4 hours, 53 minutes ago -
Can’t display images in incoming Outlook 365 emails
by
WScopwriter
5 hours, 16 minutes ago -
Windows 11 Insider Preview Build 26200.5510 early builds of 25H2
by
Alex5723
12 hours, 57 minutes ago -
0Patch : Micropatches released for SCF File NTLM Hash Disclosure Vulnerability
by
Alex5723
13 hours, 57 minutes ago -
Select multiple emails and they all open up!
by
CeeJay
1 day, 6 hours ago -
How to remove an update preview
by
Gunny
10 hours, 47 minutes ago -
Third party add ins reminder
by
Susan Bradley
9 hours, 44 minutes ago -
OTF, which backs Tor, Let’s Encrypt and more, sues to save its funding
by
Nibbled To Death By Ducks
23 hours, 44 minutes ago -
Updating Windows 10 to Windows 11: 23H2 or 24H2?
by
Still Anonymous
1 day, 10 hours ago -
How can I update “Explorer Patcher”
by
WSplanckster
1 day, 12 hours ago -
Check out the home page for Signal
by
CAS
1 day, 10 hours ago -
Windows 11 and Trial version of MS Office
by
Tex265
1 day, 9 hours ago -
Windows 11 Insider Preview build 26120.3585 (24H2) released to BETA
by
joep517
1 day, 16 hours ago -
Windows 11 Insider Preview build 26200.5510 released to DEV
by
joep517
1 day, 16 hours ago -
Windows 11 Insider Preview Build 26100.3624 (24H2) released to Release Preview
by
joep517
1 day, 16 hours ago -
Limits on User Names
by
CWBillow
1 day, 13 hours ago -
MS-DEFCON 4: Mixed bag for March
by
Susan Bradley
5 hours, 53 minutes ago -
Non Apple Keyboards
by
pmcjr6142
14 hours, 11 minutes ago -
How to delete your 23andMe data – The Verge
by
AJNorth
1 day, 11 hours ago -
7 common myths about Windows 11 (Microsoft AD)
by
EyesOnWindows
1 day, 9 hours ago -
Error updating to Win11 0x8024a205
by
bmeacham
2 days, 11 hours ago -
default apps
by
chasfinn
16 hours, 37 minutes ago -
Will MS Works 4 work in MS Win 11?
by
MileHighFlyer
2 days, 18 hours ago -
Adding links to text in Word 2000
by
sgeneris
1 day, 15 hours ago -
FBI warnings are true—fake file converters do push malware
by
Nibbled To Death By Ducks
2 days, 12 hours ago -
Classic and Extended Control Panel — no need to say goodbye
by
Deanna McElveen
1 hour, 15 minutes ago -
Things you can do in 2025 that you couldn’t do in 2024
by
Max Stul Oppenheimer
2 days, 23 hours ago -
Revisiting Windows 11’s File Explorer
by
Will Fastie
2 days, 8 hours ago -
Planning ahead for migration
by
Susan Bradley
1 day, 8 hours ago
Recent blog posts
- Third party add ins reminder
- MS-DEFCON 4: Mixed bag for March
- Classic and Extended Control Panel — no need to say goodbye
- Things you can do in 2025 that you couldn’t do in 2024
- Revisiting Windows 11’s File Explorer
- Planning ahead for migration
- Woody Leonhard (1951–2025)
- What I learned from Woody Leonhard
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.