Private
Const
EXM_OPT_FILENAME_BUILD
As
String
=
"em_<DATE>_<SUBJECT>"
Private
Const
EXM_OPT_CLEANSUBJECT_REGEX
As
String
=
"RE:\s|Re:\s|AW:\s|FW:\s|WG:\s|SV:\s|Antwort:\s"
Private
Const
EXM_OPT_FILENAME_DATEFORMAT
As
String
=
"mmdd"
Private
Const
MAX_PATH = 260
Private
Type OpenFilename
lStructSize
As
Long
hWndOwner
As
Long
hInstance
As
Long
lpstrFilter
As
String
lpstrCustomFilter
As
String
nMaxCustFilter
As
Long
nFilterIndex
As
Long
lpstrFile
As
String
nMaxFile
As
Long
lpstrFileTitle
As
String
nMaxFileTitle
As
Long
lpstrInitialDir
As
String
lpstrTitle
As
String
Flags
As
Long
nFileOffset
As
Integer
nFileExtension
As
Integer
lpstrDefExt
As
String
lCustData
As
Long
lpfnHook
As
Long
lpTemplateName
As
String
End
Type
Private
Const
OFN_ALLOWMULTISELECT = &H200
Private
Const
OFN_CREATEPROMPT = &H2000
Private
Const
OFN_ENABLEHOOK = &H20
Private
Const
OFN_ENABLETEMPLATE = &H40
Private
Const
OFN_ENABLETEMPLATEHANDLE = &H80
Private
Const
OFN_EXPLORER = &H80000
Private
Const
OFN_EXTENSIONDIFFERENT = &H400&
Private
Const
OFN_FILEMUSTEXIST = &H1000
Private
Const
OFN_HIDEREADONLY = &H4&
Private
Const
OFN_LONGNAMES = &H200000
Private
Const
OFN_NOCHANGEDIR = &H8&
Private
Const
OFN_NODEREFERENCELINKS = &H100000
Private
Const
OFN_NOLONGNAMES = &H40000
Private
Const
OFN_NONETWORKBUTTON = &H20000
Private
Const
OFN_NOTESTFILECREATE = &H10000
Private
Const
OFN_OVERWRITEPROMPT = &H2&
Private
Const
OFN_PATHMUSTEXIST = &H800
Private
Const
OFN_READONLY = &H1
Private
Const
OFN_SHAREAWARE = &H4000
Private
Const
OFN_SHAREFALLTHROUGH = 2
Private
Const
OFN_SHAREWARN = 0
Private
Const
OFN_SHARENOWARN = 1
Private
Const
OFN_SHOWHELP = &H10
Private
Const
OFS_MAXPATHNAME = 128
#If VBA7 Then
Private
Declare
PtrSafe
Function
GetSaveFileName
Lib
"comdlg32"
_
Alias
"GetSaveFileNameA"
( _
lpOpenfilename
As
OpenFilename)
As
Long
Private
Declare
PtrSafe
Function
CommDlgExtendedError
Lib
"comdlg32"
()
As
Integer
Private
Declare
PtrSafe
Function
GetActiveWindow
Lib
"user32"
()
As
Long
#Else
Private
Declare
Function
GetSaveFileName
Lib
"comdlg32"
_
Alias
"GetSaveFileNameA"
( _
lpOpenfilename
As
OpenFilename)
As
Long
Private
Declare
Function
CommDlgExtendedError
Lib
"comdlg32"
()
As
Integer
Private
Declare
Function
GetActiveWindow
Lib
"user32"
()
As
Long
#End If