本示例为 Wps 文档设置默认文件夹。

Options.DefaultFilePath(wpsDocumentsPath) = "C:\Documents"

 

本示例返回用户模板当前的默认路径(相当于“选项”对话框中的“文件位置”选项卡设置的默认路径)。

Dim strPath As String
strPath = Options.DefaultFilePath(wpsUserTemplatesPath)