My Win 10 computer is 64-bit.
All my data is on six x 2Tb add-on hard-drives, with six more as back-up.
Over the past 45 years I have built up a library of VBA Routines, some of which have been given to me and I don't understand them ! But they do what I want !
When I got a Win11 computer, I simply unplugged the "manifold" from the Win 10 and plugged it into the Win 11.
But when I fired up an Excel spreadsheet, I got these messages that -
A) I do not understand, and
B) I have not the SLIGHTEST idea what to do !
Perhaps because I am now 87
(my father made it to 102)
I THINK I have added screen-shots of the two messages, but I can't see them !
So here are transcripts -
The first sez -
Compile error:
The code in this project must be updated for use on 640bit
systems. Please review and update Declare statements and
then mark them with the PtrSafe attribute.
Here's the start of the second -
Option Base 1
Option Explicit
Public Declare Function GetUserName Lib "advapi32 .dll" Alias "GetUserNameA" (_
ByVal lpBuffer As String, nSize As Long) As Long
Public Declare Function GetComputerName Lib "kernel32" Alias "GetComputerNanteA" (
ByVal lpBuffer As String, nSize As Long) As Long
‘' The GetDirectory function ‘ 32-bit API declarations
Declare Function SHGetPathFromIDList Lib "shell32 .dll"
Alias "SHGetPathFromIDListA" (ByVal pidl As Long, ByVal pszPath As String) _
As Long
Public Declare Function SHBrowseForFolder Lib "shell32.dll" _
Alias "SHBrowseForFolderA" (lpBrowselnfo As BROWSEINFO) As Long_
and I guess the rest of that routine follows - and maybe others too.
In all the "upgrades", I have NEVER had SO many challenges ! :-(
So what can I do to solve this VBA challenge ?