-1
的意外標識符我已經刪除了以下全局變量。這些將被模塊使用。VBa編譯錯誤:私人類型**** EMID
但是在「私有類型**** EMID」行我得到一個編譯錯誤:預期的標識符。 我從來沒有使用過這些聲明。你能建議需要做什麼嗎?
'- to get Explorer folder
Declare Function SHGetSpecialFolderLocation Lib "shell32.dll" _
(ByVal hwndOwner As Long, ByVal nFolder As Long, pidl As ITEMIDLIST) As Long
Const CSIDL_WINDOWS = &H24
'---------------------------------------------------------------------------------------------------------
Declare Function SHGetPathFromIDList Lib "shell32.dll" Alias "SHGetPathFromIDListA" _
(ByVal pidl As Long, ByVal pszPath As String) As Long
'---------------------------
Private Type ****EMID
cb As Long
abID As Byte
End Type
'---------------------------
Private Type ITEMIDLIST
mkid As ****EMID
End Type
'---------------------------------------------------------------------------------------------------------
謝謝Thomas。我脫掉了****,它的工作! – Nash
歡迎您。感謝您的複選標記! – 2016-08-04 15:49:07