I wanted to find a way to check if user has any other open workbook, other case when user press close button is userform scritp could close whole excel.
I got problem if user has open workbook and I use method:
Private Sub Workbook_Open()
Application.Visible = false
laskuri.Show
End Sub
...program...
Private Sub CBsulje_Click()
laskuri.Hide
ActiveWindow.Close
Application.Visible = True
End Sub
Workbook which was open is hided (I can see taskmanager that excel.exe is running), if user try to open it again coming message that workbook is already open....
I have some mistake here, but didn't find where. So a bit help will be great.
Maba
Bookmarks