-
WSuseful
AskWoody LoungerHi Paul
I keep forgetting to ask if you know what the problem is with the date fix macro?
Regards
George -
WSuseful
AskWoody LoungerHi Paul
As far as I know, the path has never been \TSBVol1R … so that extra folder FilesR remains a mystery.
I have replaced the code as you suggested and ran the macro yet again on the same folder. It ran for a while then it ‘crashed’, this time with the following error:
Run-time error ‘6295’
Office has detected a problem with this file. To help protect your computer this file cannot be opened.Debug highlighted:
Documents.Open StrDoc, AddToRecentFiles:=False, ReadOnly:=False, Format:=wdOpenFormatAuto
When I then opened this file, it was opened in Protected Mode, with a similar error in Word.
Regards
George -
WSuseful
AskWoody LoungerHi Paul
I replaced the code with the one you kindly sent and once again ran the macro for the same person’s folder.
This time the code ran much more slowly and displayed, for example:
Contacting ||TSLSERVERFilesRFilesDocGenWord2002Bill of Costs_02.dot
I am unsure of where the extra folder ‘FilesR’ has come from. It is not in the code, nor on the File Server.
Eventually the macro ‘crashed’ with the following error:
Run-time error ‘450’
Wrong number of arguments or invalid property assignmentDebug highlighted the following:
oItem.DateLastModified = StrDtTm
The error report listed 29 files that it was unable to update and that should be updated manually. Most were Error ‘5180’ files, but some were protected documents. I have been able to open all of these protected documents and I can see that they contain forms with editable fields that have been downloaded from say the Titles Office and I am unable to see which templates are attached, as the document is just re-displayed when I got to Files | Options | Add-Ins | Templates.
Regards
George -
WSuseful
AskWoody LoungerHi Paul
I inserted the new code in the two places you indicated and ran the macro again on the same person’s folder, but it ‘crashed’ with the same Run-time error ‘5180’ as it did before, with the same message and same Debug highlight.
Regards
George -
WSuseful
AskWoody LoungerHi Paul
The previous file the appeared on the error report and reported that it could not find the template, did process correctly with the new code. All of the templates involved with this process have several macros, but none of the templates are intended to run a mailmerge.
The very next Word file in the same folder must have tripped up the code when I ran it again, as the template that is attached to that document is the Bill of Costs_02.dot and the code has not updated to the current template path, which still points to the old Novell server path.
I hope this gives you a suitable clue.
Regards
George -
WSuseful
AskWoody LoungerHi Paul
I have just opened the template without problems and just created a new file from it, which also worked fine. I have Administrator privileges, so it could not be a rights issue.
Regards
George -
WSuseful
AskWoody LoungerHi Paul
I substituted the code you so kindly sent and ran the macro again and this time it ‘crashed’ with:
Run-time error ‘5180’
Word cannot open this document template
(\TSLSERVER…Bill of Costs_02.dot)Debug highlighted the line:
.AttachedTemplate = NewServer & Mid(strPath, Len(oldServer) + 1)
The template file it says it cannot open is, of course, there so I’m none the wiser as to why it would display that error.
Regards
George -
WSuseful
AskWoody LoungerHi Paul
I’m not having much luck it seems … whilst waiting, I thought I would continue with the template path changes on all of those other files in the Home directory. Armed with your latest code, I ran it on a couple of people’s folders and it ran fine. On the third person’s folder, however, it ‘crashed’ on one of the Word files with:
Run-time error ’91’
Object variable or Withblock variable not setDebug highlighted:
.AttachedTemplate = “”
and the error report displayed:
Template: \TSLSERVERFilesDocGenWord2002B&W Letter_02.dot not found for H:HomeLizConveyancing19533 ltr to natoli.doc
I have checked and B&W Letter_02.dot is definitely there, so I don’t understand what it is complaining about.
Sorry to keep bothering you.
Regards
George -
WSuseful
AskWoody LoungerHi Paul
Just when I thought everything was going to be OK and I could just fix those file dates … I am running the code and after doing a significant number of files fine, it ‘crashes’ with:
Runtime error ’13’
Type mismatchDebug shows:
ObjFile.ModifyDate = StrTmp
Initially I moved the offending file out of that tree and ran it again (I can’t run the code from where it has stopped, which is a problem in itself if it strikes an error way down the tree). This time it ‘crashed’ on a different file, so I thought I would ask for your help.
Sorry to trouble you again.
Regards
George -
WSuseful
AskWoody LoungerAh yes, if I was only thinking … the Error Report was clearly written to the Normal template.
Thank you!
Regards
George -
WSuseful
AskWoody LoungerHi Paul
Clearly I’m missing something. I am running Windows 7 on this PC, so when I go to C:UsersGeorgeAppDataRoamingMicrosoftTemplates the only files I can see are Normal.dotm and NormalEmail.dotm there is no Error Report to delete.
Regards
George -
WSuseful
AskWoody LoungerHi Paul
I have just tested the code for the date fix and although the test code only displayed 65 entries, the 143 is correct and the code does work!
Thank you very much! It is really appreciated!
All that remains now is to fix that strange problem of the error code report being displayed every time I run Word and there is nothing I can do to remove it.
Regards
George -
WSuseful
AskWoody LoungerHi Paul
1. That’s an easy solution to add the macro to a document instead of the Normal template. Thank you, that’s resolved.
2. I ran the test code, but even though your code says “For i = 0 To 150” the display box only display 65 entries and Content Created is not one of them.
3. That3.
3. That weird display of the error report keeps coming up no matter what I do, each time I open Word.Regards
George -
WSuseful
AskWoody LoungerHi Paul
One other thing. I’m probably not doing it right, but I am unable to add your macro to existing macros, because I am unable to ‘separate’ them and make yours unique. The only way I can run it is to remove all the others, so yours is the only one.
Clearly there must be a way for the macro to pick up those statements (declarations?) above Sub Main () but unless it’s the only macro it doesn’t.
Thank you.
Regards
George -
WSuseful
AskWoody LoungerHi Paul
Sorry to bother you, but something very strange is happening as I continue to run that macro for other files that need the new template paths.
When an error report is created, I am unable to ‘get rid of it’. Whether I close the file, or save the file, or exit Word, the error report just re-appears as soon as I open a new file, or re-run Word (when a new document is started automatically).
It must be a simple code change, I hope.
Regards
George
![]() |
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
-
Edge Seems To Be Gaining Weight
by
bbearren
54 minutes ago -
Rufus is available from the MSFT Store
by
PL1
9 hours, 34 minutes ago -
Microsoft : Ending USB-C® Port Confusion
by
Alex5723
11 hours, 43 minutes ago -
KB5061768 update for Intel vPro processor
by
drmark
7 hours, 56 minutes ago -
Outlook 365 classic has exhausted all shared resources
by
drmark
9 hours, 54 minutes ago -
My Simple Word 2010 Macro Is Not Working
by
mbennett555
7 hours, 28 minutes ago -
Office gets current release
by
Susan Bradley
10 hours, 6 minutes ago -
FBI: Still Using One of These Old Routers? It’s Vulnerable to Hackers
by
Alex5723
2 days ago -
Windows AI Local Only no NPU required!
by
RetiredGeek
1 day, 8 hours ago -
Stop the OneDrive defaults
by
CWBillow
2 days ago -
Windows 11 Insider Preview build 27868 released to Canary
by
joep517
2 days, 10 hours ago -
X Suspends Encrypted DMs
by
Alex5723
2 days, 13 hours ago -
WSJ : My Robot and Me AI generated movie
by
Alex5723
2 days, 13 hours ago -
Botnet hacks 9,000+ ASUS routers to add persistent SSH backdoor
by
Alex5723
2 days, 14 hours ago -
OpenAI model sabotages shutdown code
by
Cybertooth
2 days, 14 hours ago -
Backup and access old e-mails after company e-mail address is terminated
by
M W Leijendekker
2 days, 2 hours ago -
Enabling Secureboot
by
ITguy
2 days, 9 hours ago -
Windows hosting exposes additional bugs
by
Susan Bradley
2 days, 22 hours ago -
No more rounded corners??
by
CWBillow
2 days, 18 hours ago -
Android 15 and IPV6
by
Win7and10
2 days, 8 hours ago -
KB5058405 might fail to install with recovery error 0xc0000098 in ACPI.sys
by
Susan Bradley
3 days, 10 hours ago -
T-Mobile’s T-Life App has a “Screen Recording Tool” Turned on
by
Alex5723
3 days, 13 hours ago -
Windows 11 Insider Preview Build 26100.4202 (24H2) released to Release Preview
by
joep517
3 days, 8 hours ago -
Windows Update orchestration platform to update all software
by
Alex5723
3 days, 20 hours ago -
May preview updates
by
Susan Bradley
3 days, 8 hours ago -
Microsoft releases KB5061977 Windows 11 24H2, Server 2025 emergency out of band
by
Alex5723
2 days, 23 hours ago -
Just got this pop-up page while browsing
by
Alex5723
3 days, 13 hours ago -
KB5058379 / KB 5061768 Failures
by
crown
3 days, 10 hours ago -
Windows 10 23H2 Good to Update to ?
by
jkitc
2 days, 12 hours ago -
At last – installation of 24H2
by
Botswana12
4 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.