When I open or close the workbook’s EXE file, it opens a blank window that says “Excel” in the window caption and another that has “Personal.xlsb” in it’s window’s caption. These cannot be hidden or closed manually. In fact, they get in the way of my actual excel sheet and I think the users are going to have a tough time realizing how to select the actual wb.
I created a solution that resolves this. If you’re having this problem, please put this macro in your Workbook_Open() procedure:
Sub closeExtraWindows()
Dim awin As Window
For Each awin In Application.Windows
If UCase(awin.Caption) = "PERSONAL.XLSB" Or Left(UCase(awin.Caption), 7) = "EXCEL -" Then
If awin.Visible Then
awin.Visible = False
End If
End If
'Debug.Print awin.Visible
'Debug.Print awin.Caption
Next awin
End Sub
I hope this helps some people and I hope it helps gdgsoft to help more people, because I’m very impressed with them and I want them to succeed!
Thank you for your nice feedback and useful workaround.
In the incoming version 2.4 of XLS Padlock, we found a way to disable loading of Personal.xlsb so the problem won’t occur anymore.
I am testing the trial version, and have the same problem. Because of the customized ribbon made by a macro I check this under advanced options -> “do not disable access to XLStart user folder”. I get my ribbon, but there are several windows in the way, and I have to terminate the application with Task Manager.
This should be offered as a new feature in the next XLS Padlock version. Authors will be able to specify a custom Excel.officeUI file that will be used for the secure workbook.
Thanks for the follow-up! Glad that the most recent release fixed your problem, although we’ll still try to offer the option to have a customized Excel.officeUI
I still get the problem. Started a new test project.
With “do not disable access to XLStart user folder" ON - I get ribbon made by VBA, and 2 other windows opens, and I have to terminate the application with the Task Manager.
With “do not disable access to XLStart user folder" OFF - I do not get the ribbon by VBA before I change focus to some other application window in Windows, and then return focus to excel. Then everything is ok. But how to explain that to a customer?