Full Pathname using an Office 2011

RobP

Well-known Member
Joined
May 8, 2008
Messages
843
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I have quite a simple question for you, having just migrated to a mac and Office 2011. Of course the first thing I want to try out is whether the macros from my PC still work ...

I have a Cell on a sheet, that contains the full pathname of the file I want to load. My macro uses this address to find the file. In PC language, it reads "c:\documents and settings\...." blah blah blah. What syntax do I use for the mac full pathname.

I assume something like "Macintosh HD\Users\Rob\", but cant seem to get it to find my file.

any ideas ?
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
The path separator on the Mac is a colon. Use CurDir in VBA to determine your current file path, or in a cell use =INFO("directory"). You'll need to append the workbooks name to the end of the file path to get the complete file path.
 
Upvote 0
Thanks Jim,

I'll take a look - appreciate the info.

Rgds
ROb
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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