MS Office VBA has a property called Application.PathSeparator
.
I'm supportive of interoperability, but Office runs only on Windows & MacOS, and both platforms use the same \
path separator.
When would it ever be advisable to use Application.PathSeparator
(as opposed to simply hardcoding the \
and saving 22 keystrokes)?
To be clear, I do think it's important to support international differences when posting code on an international site like Stack Overflow, so I will often use Application.International
properties such as xlDateSeparator
and, more importantly, xlDateOrder
. (More about those here)
Application.International (xlListSeparator)
– Platelet:
– Quaint