-
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
![]() |
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
1 hour, 31 minutes ago -
Microsoft : AI-powered deception: Emerging fraud threats and countermeasures
by
Alex5723
4 hours, 21 minutes ago -
0patch
by
WSjcgc50
49 minutes ago -
Devices might encounter blue screen exception with the recent Windows updates
by
Susan Bradley
1 hour, 27 minutes ago -
Windows 11 Insider Preview Build 22631.5261 (23H2) released to Release Preview
by
joep517
7 hours, 20 minutes ago -
Problem opening image attachments
by
RobertG
8 hours, 55 minutes ago -
advice for setting up a new windows computer
by
routtco1001
23 hours, 40 minutes ago -
It’s Identity Theft Day!
by
Susan Bradley
3 hours, 57 minutes ago -
Android 15 require minimum 32GB of storage
by
Alex5723
1 day, 4 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, 5 hours ago -
Firefox became sluggish
by
Rick Corbett
1 day, 2 hours ago -
Windows 10 Build 19045.5794 (22H2) to Release Preview Channel
by
joep517
1 day, 9 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, 47 minutes ago -
Download speeds only 0.3Mbps after 24H2 upgrade on WiFi and Ethernet
by
John
1 hour, 21 minutes ago -
T-Mobile 5G Wireless Internet
by
WSmmi16
7 hours, 28 minutes ago -
Clock missing above calendar in Windows 10
by
WSCape Sand
8 hours, 40 minutes ago -
Formula to Calculate Q1, Q2, Q3, or Q4 of the Year?
by
WSJon5
2 days ago -
The time has come for AI-generated art
by
Catherine Barrett
1 day, 4 hours ago -
Hackers are using two-factor authentication to infect you
by
B. Livingston
1 day, 14 hours ago -
23 and you
by
Max Stul Oppenheimer
1 day, 21 hours ago -
April’s deluge of patches
by
Susan Bradley
1 hour, 13 minutes ago -
Windows 11 Windows Updater question
by
Tex265
1 hour, 34 minutes ago -
Key, Key, my kingdom for a Key!
by
RetiredGeek
3 days, 6 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, 17 hours ago -
DDU (Display Driver Uninstaller) updates
by
Alex5723
2 days, 2 hours ago -
Align objects on a OneNote page
by
CWBillow
3 days, 16 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.