VBA/Excel/Access/Word/Application/Options — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
Admin (обсуждение | вклад) м (1 версия) |
(нет различий)
|
Текущая версия на 12:46, 26 мая 2010
Содержание
- 1 Set auto recover path: wdAutoRecoverPath
- 2 Set border art path: wdBorderArtPath
- 3 Set current folder path: wdCurrentFolderPath
- 4 Set document path: wdDocumentsPath
- 5 Set Graphics Filters path: wdGraphicsFiltersPath
- 6 Set startup path: wdStartupPath
- 7 Set style galary pathwdStyleGalleryPath: wdStyleGalleryPath
- 8 Set temp file path: wdTempFilePath
- 9 Set text cover path: wdTextConvertersPath
- 10 Set the CtrlClickHyperlinkToOpen property of the Options object to True to ensure that hyperlinks require Ctrl+clicking:
- 11 Set the user templates path and workgroup templates path:
- 12 Set tools path: wdToolsPath
- 13 Turning Off Overtype
Set auto recover path: wdAutoRecoverPath
Sub pathDemo1()
Options.DefaultFilePath(wdAutoRecoverPath) = "c:\"
End Sub
Set border art path: wdBorderArtPath
Sub pathDemo3()
Options.DefaultFilePath(wdBorderArtPath) = "c:\user\"
End Sub
Set current folder path: wdCurrentFolderPath
Sub pathDemo5()
Options.DefaultFilePath(wdCurrentFolderPath) = "c:\user\"
End Sub
Set document path: wdDocumentsPath
Sub pathDemo16()
Options.DefaultFilePath(wdDocumentsPath) = "c:\user\"
End Sub
Set Graphics Filters path: wdGraphicsFiltersPath
Sub pathDemo8()
Options.DefaultFilePath(wdGraphicsFiltersPath) = "c:\user\"
End Sub
Set startup path: wdStartupPath
Sub pathDemo18()
Options.DefaultFilePath(wdStartupPath) = "c:\user\"
End Sub
Set style galary pathwdStyleGalleryPath: wdStyleGalleryPath
Sub pathDemo2()
Options.DefaultFilePath(wdStyleGalleryPath) = "c:\user\"
End Sub
Set temp file path: wdTempFilePath
Sub pathDemo4()
Options.DefaultFilePath(wdTempFilePath) = "c:\user\"
End Sub
Set text cover path: wdTextConvertersPath
Sub pathDemo6()
Options.DefaultFilePath(wdTextConvertersPath) = "c:\user\"
End Sub
Set the CtrlClickHyperlinkToOpen property of the Options object to True to ensure that hyperlinks require Ctrl+clicking:
Sub opt()
Options.CtrlClickHyperlinkToOpen = True
End Sub
Set the user templates path and workgroup templates path:
Sub pathDemo9()
Options.DefaultFilePath(wdUserTemplatesPath) = "c:\user\"
Options.DefaultFilePath(wdWorkgroupTemplatesPath) = "\\server\users\templates"
End Sub
Set tools path: wdToolsPath
Sub pathDemo7()
Options.DefaultFilePath(wdToolsPath) = "c:\user\"
End Sub
Turning Off Overtype
Sub opt2()
Dim blnOvertypeOn As Boolean
blnOvertypeOn = Options.Overtype
Options.Overtype = False
Options.Overtype = blnOvertypeOn
End Sub