+ Reply to Thread
Results 1 to 4 of 4

Mac Excel cannot find file path - code error

  1. #1
    Forum Contributor
    Join Date
    07-31-2014
    Location
    Texas
    MS-Off Ver
    Mac 2011 Version 14.5.4
    Posts
    114

    Mac Excel cannot find file path - code error

    Hi,
    Can someone please peek at this code and let me know why I get a "path not found" 76 error. This code works fine on a PC. It's got to be some weird Mac thing. We made sure to use Application.PathSeparator in place of / , but the FileExist function keeps popping up a bug.

    Please Login or Register  to view this content.
    Thank you

  2. #2
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: Mac Excel cannot find file path - code error

    What are the actual values of PathName and FileNameF and FileNameC?

  3. #3
    Forum Contributor
    Join Date
    07-31-2014
    Location
    Texas
    MS-Off Ver
    Mac 2011 Version 14.5.4
    Posts
    114

    Re: Mac Excel cannot find file path - code error

    Quote Originally Posted by rorya View Post
    What are the actual values of PathName and FileNameF and FileNameC?
    Thank you!
    They are:
    Path /Users/mermaidniki/Desktop/AllTheOtherUseThis/PhDDataForAnalysis/ExcelFiles/FertileFemale
    FileNameF /Users/mermaidniki/Desktop/AllTheOtherUseThis/PhDDataForAnalysis/ExcelFiles/FertileFemale/NBdata.csv
    FileNameC /Users/mermaidniki/Desktop/AllTheOtherUseThis/PhDDataForAnalysis/ExcelFiles/FertileFemale/FertileFemaleCount.xls

    BUT FileNameF will change - I have about 30 files that this needs to run on.

  4. #4
    Forum Contributor
    Join Date
    07-31-2014
    Location
    Texas
    MS-Off Ver
    Mac 2011 Version 14.5.4
    Posts
    114

    Re: Mac Excel cannot find file path - code error

    I did try replacing this code
    Please Login or Register  to view this content.
    With this code
    Please Login or Register  to view this content.
    And anything that called the function as well. Then it pushed through the file not found, but wound up with new errors. I think this may be a lost cause on a Mac unless I can find an expert. =(

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Run-time error '1004' Sorry we couldnt find.... file path
    By caabdul in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-02-2018, 09:22 AM
  2. [SOLVED] Recover Damaged Excel File Corrupted By Path/File Access Error
    By SuperShaggy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-15-2016, 07:20 AM
  3. VBA Code - File Path Error
    By mebailey in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-31-2016, 10:40 PM
  4. Replies: 3
    Last Post: 10-27-2015, 12:26 AM
  5. Run time error 75 (Path/File Access Error) - Excel 2007 on XP SP3
    By Portuga in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-30-2014, 10:39 AM
  6. [SOLVED] Excel link workbooks file path error
    By hellowit in forum Excel General
    Replies: 2
    Last Post: 08-16-2013, 04:13 AM
  7. Can you use a piece of VB code to get the path of the current excel file?
    By Smurlos in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-03-2011, 08:18 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1