Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default Generic separator

I'd like to construct a path name by adding a filename to a directory
path, such that it works whatever platform it's being run on.

ie I need to know what to use as the separator so that it puts in a "\"
on a PC & a ":" on a Mac

--
Gordon Rainsford

London UK
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Generic separator

Hi Gordon,

Try using:

Application.PathSeparator


---
Regards,
Norman


"Gordon Rainsford" wrote in message
news:1hyeqip.nqw2ka1wt61blN%grbridgeREMOVETHIS@bti nternet.com...
I'd like to construct a path name by adding a filename to a directory
path, such that it works whatever platform it's being run on.

ie I need to know what to use as the separator so that it puts in a "\"
on a PC & a ":" on a Mac

--
Gordon Rainsford

London UK



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default Generic separator


That worked - thanks.



Norman Jones wrote:

Hi Gordon,

Try using:

Application.PathSeparator


---
Regards,
Norman


"Gordon Rainsford" wrote in message
news:1hyeqip.nqw2ka1wt61blN%grbridgeREMOVETHIS@bti nternet.com...
I'd like to construct a path name by adding a filename to a directory
path, such that it works whatever platform it's being run on.

ie I need to know what to use as the separator so that it puts in a "\"
on a PC & a ":" on a Mac

--
Gordon Rainsford

London UK



--
Gordon Rainsford

London UK
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Use 100 separator inspite of 1000 separator in excel Montu Excel Worksheet Functions 11 May 2nd 23 11:41 AM
Generic Form NicB.[_5_] Excel Programming 1 May 25th 06 07:47 PM
Generic n in For n To xxxxx knowtrump[_14_] Excel Programming 4 February 10th 06 04:58 AM
Generic Macro Steve Excel Programming 3 January 22nd 04 09:03 PM


All times are GMT +1. The time now is 08:49 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"