+ Reply to Thread
Results 1 to 4 of 4

[Bug?] Workbook_Activate_Deactivate partly stops working after manually enlarging a table

Hybrid View

MichaelEi [Bug?]... 06-07-2018, 10:44 AM
xlnitwit Re: [Bug?]... 06-07-2018, 01:08 PM
MichaelEi Re: [Bug?]... 06-08-2018, 03:56 AM
MichaelEi Re: [Bug?]... 06-08-2018, 03:57 AM
  1. #1
    Registered User
    Join Date
    06-07-2018
    Location
    Germany
    MS-Off Ver
    2016
    Posts
    3

    Question [Bug?] Workbook_Activate_Deactivate partly stops working after manually enlarging a table



    Hi Guys,

    I hope some1 can help me with this.

    I use the following code to slim down Excel a little bit while using a certain Exceltool (an open issues list for those who want to know).

    This code works perfectly until I enlarge the one table I have inside the Exceltool manually downwards (adding a row with the blue corner in the right bottom of the table).

    As soon as I do this the FormulaBar and the StatusBar stay hidden and this part of the macro seems to stop working. No error message no nothing...



    I hope some1 knows what to do and can help. Thank you already now to all contributors.


    Private Sub Workbook_Activate()
        Application.DisplayFormulaBar = False
        Application.DisplayStatusBar = False
    If Application.CommandBars("Ribbon").Height > 150 Then
        Application.CommandBars.ExecuteMso "MinimizeRibbon"
    End If
    
    Sheets("LOP").Activate
    
    End Sub
    
    Private Sub Workbook_Deactivate()
        Application.DisplayFormulaBar = True
        Application.DisplayStatusBar = True
    If Application.CommandBars("Ribbon").Height < 150 Then
        Application.CommandBars.ExecuteMso "MinimizeRibbon"
    End If
    
    End Sub
    Kind regards,
    Michael

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: [Bug?] Workbook_Activate_Deactivate partly stops working after manually enlarging a ta

    Do any events work afterwards?

    Is there any conditional formatting in the workbook that uses a UDF?
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Registered User
    Join Date
    06-07-2018
    Location
    Germany
    MS-Off Ver
    2016
    Posts
    3

    Re: [Bug?] Workbook_Activate_Deactivate partly stops working after manually enlarging a ta

    Hello xINitwit,

    no all events stopped working (I use Change and Worksheetsheet_Activate + Deactivate + Workbook_Activate + Deactivate overall). I need to fully restart Excel to make them work again.
    The only thing that strangely still works is the
    If Application.CommandBars("Ribbon").Height > 150 Then
        Application.CommandBars.ExecuteMso "MinimizeRibbon"
    End If
    part of the code.


    I had one UDF but it was not used anymore and I just deleted it without any change to the problematic.

    I just tried adding
    Application.EnableEvents = True
    to the Events with no effect.

  4. #4
    Registered User
    Join Date
    06-07-2018
    Location
    Germany
    MS-Off Ver
    2016
    Posts
    3

    Re: [Bug?] Workbook_Activate_Deactivate partly stops working after manually enlarging a ta

    Now that I think of it adding the line EnableEvent to a not working event is pretty stupid

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Spreadsheet formula working partly ... not completly ...
    By reglook0736 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-21-2016, 01:56 PM
  2. If & Vlookup mixed formula only partly working
    By Weaselwithagun in forum Excel Formulas & Functions
    Replies: 31
    Last Post: 04-29-2016, 08:45 AM
  3. [SOLVED] Partly working macro - variable fails if it holds certain data
    By SoulPrisoner in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-21-2013, 09:10 AM
  4. [SOLVED] Unique item filter stops working when Table column is sorted?
    By e2Excel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-25-2013, 01:17 PM
  5. Working While Statement Stops Working
    By Verbaruab in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-10-2011, 05:58 PM
  6. Substitute code partly working
    By drewship in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-19-2010, 04:54 PM
  7. Sum stops working after
    By Robvisionstream in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 11-21-2007, 06:21 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1