Passage 32 bits à 64 bits

piga25

XLDnaute Barbatruc
Bonjour,
Je viens de changer de machine qui est maintenant en 64 bits.
J'ai un message d'erreur dans une macro
upload_2018-3-8_10-55-7.png


pour cette macro
upload_2018-3-8_10-54-26.png

Dans la macro j'ai le mot : Function qui est sélectionné

Merci
 

Pièces jointes

  • upload_2018-3-8_10-59-31.png
    upload_2018-3-8_10-59-31.png
    7.7 KB · Affichages: 43

piga25

XLDnaute Barbatruc
Bonjour,

En poursuivant mes recherches j'ai trouvé un solution proposée par BrunoM45 dans ce fil : https://www.excel-downloads.com/thr...ba-32-bits-en-64-bits.20010910/#post-20082040


VB:
#If Win64 Then
  '64-bit API declarations
  Declare PtrSafe Function SHGetPathFromIDList Lib "shell32.dll" _
  Alias "SHGetPathFromIDListA" (ByVal pidl As Long, ByVal pszPath As String) As Long

  Declare PtrSafe Function SHBrowseForFolder Lib "shell32.dll" _
  Alias "SHBrowseForFolderA" (lpBrowseInfo As BROWSEINFO) As Long
#Else
  '32-bit API declarations
  Declare Function SHGetPathFromIDList Lib "shell32.dll" _
  Alias "SHGetPathFromIDListA" (ByVal pidl As Long, ByVal pszPath As String) As Long

  Declare Function SHBrowseForFolder Lib "shell32.dll" _
  Alias "SHBrowseForFolderA" (lpBrowseInfo As BROWSEINFO) As Long
#End If
 

Statistiques des forums

Discussions
312 023
Messages
2 084 716
Membres
102 637
dernier inscrit
TOTO33000