Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-12-2025, 08:07 AM
randyj randyj is offline Compile error: Can't find project or library Windows 11 Compile error: Can't find project or library Office 2021
Novice
Compile error: Can't find project or library
 
Join Date: Feb 2025
Posts: 4
randyj is on a distinguished road
Default Compile error: Can't find project or library

Need some help please.

This was an a Project from around 2008. Trying to edit to work today. There is an error with Private Sub Document_Open(). This used to work back in the day, has a compatibility issue with newer version.



Thank you!
Attached Files
File Type: doc Dentist Extraction Request.Doc (391.0 KB, 2 views)

Last edited by macropod; 02-14-2025 at 02:09 PM. Reason: Attachment anonymized
Reply With Quote
  #2  
Old 02-12-2025, 11:37 AM
gmaxey gmaxey is offline Compile error: Can't find project or library Windows 10 Compile error: Can't find project or library Office 2019
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,617
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

Sorely in need of upgrade.


The missing reference is (orho.dot). The file attached template is:
Code:
C:\Documents and Settings\(UserName)\ApplicationData\Microsoft\Templates\ortho.dot


Apparently at some point you have renamed, moved or deleted the attached template.
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
  #3  
Old 02-12-2025, 11:45 AM
randyj randyj is offline Compile error: Can't find project or library Windows 11 Compile error: Can't find project or library Office 2021
Novice
Compile error: Can't find project or library
 
Join Date: Feb 2025
Posts: 4
randyj is on a distinguished road
Default

How can I DELETE the reference?
Attached Images
File Type: jpg Ortho-dot.jpg (52.7 KB, 20 views)
Reply With Quote
  #4  
Old 02-12-2025, 12:30 PM
gmaxey gmaxey is offline Compile error: Can't find project or library Windows 10 Compile error: Can't find project or library Office 2019
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,617
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

With the vb editor. Tools>References and uncheck Ortho.dot
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
  #5  
Old 02-12-2025, 12:33 PM
randyj randyj is offline Compile error: Can't find project or library Windows 11 Compile error: Can't find project or library Office 2021
Novice
Compile error: Can't find project or library
 
Join Date: Feb 2025
Posts: 4
randyj is on a distinguished road
Default

Removed Ortho.dot file -> Compile error in hidden module: InsertPic.

If I ignore the error and I click on all variables, THEN the concept works. For some reason, it is not initializing all the defaults.

So close!
Reply With Quote
  #6  
Old 02-13-2025, 06:37 AM
randyj randyj is offline Compile error: Can't find project or library Windows 11 Compile error: Can't find project or library Office 2021
Novice
Compile error: Can't find project or library
 
Join Date: Feb 2025
Posts: 4
randyj is on a distinguished road
Default

Still getting two errors, need help to fix.
Reply With Quote
  #7  
Old 02-13-2025, 07:13 AM
gmaxey gmaxey is offline Compile error: Can't find project or library Windows 10 Compile error: Can't find project or library Office 2019
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,617
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

Randy,
The document you posted is a dog's breakfast and needs updated. Are you still using Word 2003? There are merge fields in that document. Are you using a mail merge in your process?


If you want to contact me, use the links on my website. I can help you bring this document out of the stone age.
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compile error -- incompatibility? Ulodesk Word VBA 4 03-23-2023 12:12 PM
Compile error: Can't find project or library compile error : can't find project or library ericliu24 Word VBA 3 04-17-2022 06:47 AM
Error message ["Project is unviewable"] when I try to exit Word; despite my running Debug, Compile [ marceepoo Word VBA 2 05-07-2020 03:48 PM
compile error expected end sub ashg75 Word VBA 2 07-13-2017 07:08 AM
Compile error: Can't find project or library Compile error in Module ksigcajun Word VBA 2 04-08-2015 06:44 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:17 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft