|
-
Dec 14th, 2007, 05:10 PM
#1
Thread Starter
Hyperactive Member
[RESOLVED] Path File Access Error
I've got a pretty huge project in an Excel Workbook working very nicely, except for one extremely annoying issue...
Very randomly, sometimes while running code other times if I just leave the workbook open with nothing executing for a few hours, I will get a Path File Access Error. I end up having to hit OK about 45 times, then a
&H8000FFFF (-2147418133) Catastrophic Failure occurs ... crashing Excel and not being able to save anything..
Anyone know why this would occur? I thought I may have accidentally left a text document open or something of the such, but this error can occur if I simply open the workbook and execute no code (save the workbook_open where my initial form is loaded and displayed)...
Thanks much
-
Dec 14th, 2007, 05:12 PM
#2
Thread Starter
Hyperactive Member
Re: Path File Access Error
Also my workbook is saved on a network hard drive... but I've never had problems accessing/saving/etc files with it.
-
Dec 14th, 2007, 05:49 PM
#3
Re: Path File Access Error
Three Things that I can think of...
1) Have you checked the userform activate event?
Is there a code which is trying to access a particular path?
2) Have you checked the various events of workbook/userform wherein a code is trying to access a particular file/path?
3) Is there a piece of code somewhere which is trying to take a backup when idle somewhere which is not accessible?
A good exercise for the Heart is to bend down and help another up...
Please Mark your Thread " Resolved", if the query is solved
MyGear:
★ CPU ★ Ryzen 5 5800X
★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
★ Keyboard ★ TVS Electronics Gold Keyboard
★ Mouse ★ Logitech G502 Hero
-
Jan 14th, 2008, 05:55 PM
#4
Thread Starter
Hyperactive Member
Re: Path File Access Error
hmm.. everything seems to be checking out okay. I don't have any code set to run during idle times, at least that I'm aware of.
Only thing I can think of is that sometimes I don't unload forms, merely hiding them.. Is having a lot of hidden forms going to trip me up? or having a form hidden for a certain amount of time eventually crash Excel?
thanks
-
Jan 15th, 2008, 09:28 AM
#5
Re: Path File Access Error
 Originally Posted by pgag45
hmm.. everything seems to be checking out okay. I don't have any code set to run during idle times, at least that I'm aware of.
Only thing I can think of is that sometimes I don't unload forms, merely hiding them.. Is having a lot of hidden forms going to trip me up? or having a form hidden for a certain amount of time eventually crash Excel?
thanks
Well I don't think that hiding forms will hang excel (i could be wrong) there has to be some piece of code which is trying to access a particular path.
How big is your file?
A good exercise for the Heart is to bend down and help another up...
Please Mark your Thread " Resolved", if the query is solved
MyGear:
★ CPU ★ Ryzen 5 5800X
★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
★ Keyboard ★ TVS Electronics Gold Keyboard
★ Mouse ★ Logitech G502 Hero
-
Jan 21st, 2008, 12:43 PM
#6
Thread Starter
Hyperactive Member
Re: Path File Access Error
yeah and I still can't find it for the life for of me..
My file is currently at 92mb (Ouch I know, but the images are killing me).. Although the file does zip down to ~ 3.5 mb...
Would not closing a file I opened at one point hang me up?
-
Jan 21st, 2008, 12:50 PM
#7
Re: Path File Access Error
 Originally Posted by pgag45
yeah and I still can't find it for the life for of me..
My file is currently at 92mb (Ouch I know, but the images are killing me).. Although the file does zip down to ~ 3.5 mb...
Would not closing a file I opened at one point hang me up?
Till you reduce the file, I cannot even tell you to upload the file
Lets hope that after you reduce the file size (as mentioned in the other thread), we could have a look at your file...
A good exercise for the Heart is to bend down and help another up...
Please Mark your Thread " Resolved", if the query is solved
MyGear:
★ CPU ★ Ryzen 5 5800X
★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
★ Keyboard ★ TVS Electronics Gold Keyboard
★ Mouse ★ Logitech G502 Hero
-
Jan 21st, 2008, 01:52 PM
#8
Re: Path File Access Error
I would debug your workbook by commenting out all the code that may be accessing the file system. Save it and keep running. If no errors then uncomment some code and save. Repeat until you start getting crashes again. Then you will find the code, if any, that is making your workbook puke.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jan 22nd, 2008, 04:26 AM
#9
Re: Path File Access Error
Also my workbook is saved on a network hard drive... but I've never had problems accessing/saving/etc files with it.
it maybe loosing connection to the network drive while the machine is idle, or some other occurrence
if you can, make a copy on a local drive to test if the problem still occurs
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Jan 22nd, 2008, 04:24 PM
#10
Thread Starter
Hyperactive Member
Re: Path File Access Error
Yeah I'm really starting to think it has to do with the network drive.. I'm going to begin working on the local drive and see if it occurs now
thanks for the help
-
Jan 23rd, 2008, 05:33 PM
#11
Thread Starter
Hyperactive Member
Re: Path File Access Error
I'm going to declare this a success (hopefully don't jinx myself haha)... Moving the file onto a local drive seems to have fixed the problem... I think it may have been trying to autosave onto the network drive, which apparently wouldn't be available causing the crash.. anyway, thanks all for the help!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|