Hello there,
I definitely agree with Andy on this one, a reregister is a VERY good idea. Although I'm also thinking that maybe your XLB file(s) may be bloated, as this is happening on an instance startup and not when you are already in Excel. XLB files are Excel's toolbar files where it stores the information used in an Application instance. It acts much like Word's Normal.dot (normal dot dot), whereas if deleted, upon startup it will create a new one. They should typically be in the 10-20 kb range, anything larger is generally considered to be bloated.
Do this..
Please note: This is NOT VBA! IT IS VB (Visual Basic) CODE! DO NOT RUN FROM EXCEL! We do this because they will not be deleted if Excel is open, and thus using them.
So ensure Excel is completely closed out.
Open Notepad.
Copy the following code to it:
Code:
Dim usrname
Dim path2000XP
Dim path98NTME
Dim path98NoProfile
Dim fso
Dim objWSH
Dim answer
answer = msgbox ("This script deletes Excel's toolbar file." & vbcrlf & _
"Please ensure that Excel is closed, so that the code will run properly." & vbcrlf & _
"Press OK to continue, Cancel to stop", vbokcancel)
If answer <> vbOK Then wscript.quit(1)
'Find login-name
Set objWSH = CreateObject("WScript.Network")
usrname=objWSH.UserName
'Path to excel.xlb. First and second or win98 & NT, third for win2000 & XP
path98NoProfile = "C:\Windows\Application Data\Microsoft\Excel\excel*.xlb"
path98NTME = "C:\Windows\Profiles\" & usrname & "\Application Data\Microsoft\Excel\excel*.xlb"
path2000XP = "C:\Documents and Settings\" & usrname & "\Application Data\Microsoft\Excel\excel*.xlb"
Set fso = CreateObject("scripting.filesystemobject")
'Delete excel.xlb. If not exists goto next
On Error Resume Next
fso.deletefile path98NoProfile
fso.deletefile path98NTME
fso.deletefile path2000XP
'Clean up
Set fso = Nothing
Set objWSH = Nothing
'Show Finished and exit
msgbox "xlb-file is deleted"
'(Thanks to Tommy Bak)
Save the file as "RemoveXLB.vbs", preferrably to your desktop.
To be safe, make copies of your .XLB files before running this script.
Now doubleclick the file Note: This script will have no effect if VB scripting has been disabled on your computer. Also, virus scanners may warn you of a potentially dangerous script; you can choose to let it continue to run until finished.
HTH