hedonist said:The workbook is on automatic calculation, so whenever a cell value is changed the "initials" function tries to run. The error that is returned is:
"Compile Error: Can't find project or library"
and it keeps on saying it until you close Excel. I just tried some other computers and it is fine on my PC (Win2k and OfiiceXP, where the code was originally written) as well as another one running Win2k and Office2k.
It seems to be only working in Win2k and not WinXP or 98, regardless of the Office version.
The strange 77th dimension of computers.....
hedonist said:{snip}
3) In Tools| References he didn't have the following options (at all):
- Microsoft Windows Common Controls 6.0 (SP6)
(C:\WinNT\system32\MSCOMCTL.OCX)
- Microsoft Windows Common Controls-2 6.0 (SP6)
(C:\WinNT\system32\MSCOMCT2.OCX)
but the files are present in the system32 folder.
Any ideas of how to fix this?
Function Initials(Txt As String) As String
Dim Arr As Variant
Dim x As Integer
Arr = VBA.Split(Txt, " ")
For x = LBound(Arr) To UBound(Arr)
Initials = Initials & VBA.Left(Arr(x), 1)
Next x
End Function