Returns the special folder specified.
The GetSpecialFolder method syntax has these parts:
|object||Required. Always the name of a FileSystemObject.|
|folderspec||Required. The name of the special folder to be returned. Can be any of the constants shown in the Settings section.|
The folderspec argument can have any of the following values:
|WindowsFolder||0||The Windows folder contains files installed by the Windows operating system.|
|SystemFolder||1||The System folder contains libraries, fonts, and device drivers.|
|TemporaryFolder||2||The Temp folder is used to store temporary files. Its path is found in the TMP environment variable.|
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.