How do I work with UNC/NFS Network Files from a Mac using VBA in Excel 2011?

jarrah

New Member
Joined
May 1, 2013
Messages
28
Hi All,

Google isn't being my friend when it somes to searching for answers to this, so I'm hoping someone on here can help me instead. :)

The following code in Windows Excel 2010 returns True or False, but I just can't figure out how to check for a networked file from within VBA on a Mac?

Code:
check = Len(Dir("\\servername\path1\path2.xlsx")) > 0

I ultimately would like to do the following:
- Check text file exists
- Append a new line of text
- Open text file to check value of last line

The file is based on an NFS server.

Thanks in advance!
 
Use colons instead of slashes as file path separators on the Mac. Excel MVP Ron DeBruin has lots of tips for working with files here.
 
Upvote 0

Forum statistics

Threads
1,226,849
Messages
6,193,321
Members
453,790
Latest member
yassinosnoo1

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top