Thema
|
Datum
|
Von Nutzer
|
Rating
|
Antwort
|
makro anpassen auf 64bit |
13.11.2017 10:49:48 |
Nase |
|
|
|
13.11.2017 11:31:14 |
SJ |
|
|
|
13.11.2017 12:00:09 |
Gast86187 |
|
|
|
13.11.2017 12:01:36 |
Nase |
|
|
|
13.11.2017 12:40:30 |
SJ |
|
|
|
13.11.2017 12:45:38 |
Nase |
|
|
|
13.11.2017 13:00:06 |
SJ |
|
|
|
30.11.2017 15:35:55 |
Nase |
|
|
|
06.12.2017 09:22:10 |
Nase |
|
|
|
06.12.2017 19:23:59 |
SJ |
|
|
Von:
Nase |
Datum:
13.11.2017 10:49:48 |
Views:
1196 |
Rating:
|
Antwort:
|
Thema:
makro anpassen auf 64bit |
Hallo,
ich habe vor Jahren mal ein Makro zum speichern unserer e-mails geschrieben/zusammenkopiert.
Haben jetzt auf das 64bit Office umgestellt und ich bekomme das ding nicht mehr zum laufen. Habe das makro schon mal versucht anzupassen ("PtrSafe"), bin mir aber nicht sicher welche Variablen-Deklarationen ich von Long auf LongPtr umstellen muss?:
Kann mir da jemand weiterhelfen?
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
|
- Bitte beschreiben Sie Ihr Problem möglichst ausführlich. (Wichtige Info z.B.: Office Version, Betriebssystem, Wo genau kommen Sie nicht weiter)
- Bitte helfen Sie ebenfalls wenn Ihnen geholfen werden konnte und markieren Sie Ihre Anfrage als erledigt (Klick auf Häckchen)
- Bei Crossposting, entsprechende Links auf andere Forenbeiträge beifügen / nachtragen
- Codeschnipsel am besten über den Code-Button im Text-Editor einfügen
- Die Angabe der Emailadresse ist freiwillig und wird nur verwendet, um Sie bei
Antworten auf Ihren Beitrag zu benachrichtigen
Bitte geben Sie ein aussagekräftiges Thema an.
Bitte geben Sie eine gültige Email Adresse ein!
- Bitte beschreiben Sie Ihr Problem möglichst ausführlich. (Wichtige Info z.B.: Office Version, Betriebssystem, Wo genau kommen Sie nicht weiter)
- Bitte helfen Sie ebenfalls wenn Ihnen geholfen werden konnte und markieren Sie Ihre Anfrage als erledigt (Klick auf Häckchen)
- Bei Crossposting, entsprechende Links auf andere Forenbeiträge beifügen / nachtragen
- Codeschnipsel am besten über den Code-Button im Text-Editor einfügen
- Die Angabe der Emailadresse ist freiwillig und wird nur verwendet, um Sie bei
Antworten auf Ihren Beitrag zu benachrichtigen
Thema
|
Datum
|
Von Nutzer
|
Rating
|
Antwort
|
makro anpassen auf 64bit |
13.11.2017 10:49:48 |
Nase |
|
|
|
13.11.2017 11:31:14 |
SJ |
|
|
|
13.11.2017 12:00:09 |
Gast86187 |
|
|
|
13.11.2017 12:01:36 |
Nase |
|
|
|
13.11.2017 12:40:30 |
SJ |
|
|
|
13.11.2017 12:45:38 |
Nase |
|
|
|
13.11.2017 13:00:06 |
SJ |
|
|
|
30.11.2017 15:35:55 |
Nase |
|
|
|
06.12.2017 09:22:10 |
Nase |
|
|
|
06.12.2017 19:23:59 |
SJ |
|
|