Results 1 to 11 of 11

Thread: [RESOLVED] Path File Access Error

  1. #1

    Thread Starter
    Hyperactive Member pgag45's Avatar
    Join Date
    Mar 2007
    Location
    Colorado
    Posts
    262

    Resolved [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

  2. #2

    Thread Starter
    Hyperactive Member pgag45's Avatar
    Join Date
    Mar 2007
    Location
    Colorado
    Posts
    262

    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.

  3. #3
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    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

  4. #4

    Thread Starter
    Hyperactive Member pgag45's Avatar
    Join Date
    Mar 2007
    Location
    Colorado
    Posts
    262

    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

  5. #5
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: Path File Access Error

    Quote 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

  6. #6

    Thread Starter
    Hyperactive Member pgag45's Avatar
    Join Date
    Mar 2007
    Location
    Colorado
    Posts
    262

    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?

  7. #7
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: Path File Access Error

    Quote 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

  8. #8
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  9. #9
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    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

  10. #10

    Thread Starter
    Hyperactive Member pgag45's Avatar
    Join Date
    Mar 2007
    Location
    Colorado
    Posts
    262

    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

  11. #11

    Thread Starter
    Hyperactive Member pgag45's Avatar
    Join Date
    Mar 2007
    Location
    Colorado
    Posts
    262

    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
  •  



Click Here to Expand Forum to Full Width