Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 504
Default CommandBar.Control is inactive after error

I have a CommandBar.Control that becomes inactive after an error is
encountered. I've tried Application.EnableEvents = True with no luck.

Any help will be greatly appreciated.

Thanks.


I have the following code in ThisWorkbook.

Private Sub Workbook_Open()
Dim cCont As CommandBarControl
Set cCont = Application.CommandBars(1).Controls.Add()
With cCont
.Caption = NewCommandBarCaption
.Style = msoButtonIconAndCaption
.FaceId = 643
.OnAction = "Main_Menu"
End With
...

And I have "On Error GoTo ErrHandler" in all my Modules. That code looks
like this.

ErrHandler:
strErrNumber = Err.Number
strErrDescription = Err.Description
strSubName = "some name"
ErrorHandling
End Sub

Module ErrorHandling handles ScreenUpdating, DisplayAlerts and activates
MasterWorkbook.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
control inactive on toolbar Irv Excel Discussion (Misc queries) 2 September 4th 08 03:58 PM
CommandBar control ID help. Dev Excel Programming 4 July 7th 06 02:42 AM
How control where the CommandBar will be placed? Gunnar Johansson[_5_] Excel Programming 4 May 9th 05 04:07 AM
commandbar control and application.caller Doug Glancy Excel Programming 3 March 1st 04 09:47 AM
Add control to commandbar Dan[_20_] Excel Programming 2 August 27th 03 04:47 PM


All times are GMT +1. The time now is 03:46 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"