+ Reply to Thread
Results 1 to 17 of 17

Why is there no Ribbon/Menu bar/Quick Access when adding a Workbook to a 'New Application'

  1. #1
    Registered User
    Join Date
    03-26-2014
    Location
    Norway
    MS-Off Ver
    Microsoft 365 MSO (Version 2403 Build 16.0.17425.20124) 64-bit
    Posts
    33

    Why is there no Ribbon/Menu bar/Quick Access when adding a Workbook to a 'New Application'

    Running this code:
    Please Login or Register  to view this content.
    Results in this Excel window:
    excel.png

    And the 'Customize Ribbon'/'Quick Access Toolbar' are deactivated in the 'Excel Options' window:
    ribbon.png

  2. #2
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    2,026

    Re: Why is there no Ribbon/Menu bar/Quick Access when adding a Workbook to a 'New Applicat

    Are you able to click the ribbon options at all?
    Attached Images Attached Images

  3. #3
    Registered User
    Join Date
    03-26-2014
    Location
    Norway
    MS-Off Ver
    Microsoft 365 MSO (Version 2403 Build 16.0.17425.20124) 64-bit
    Posts
    33

    Re: Why is there no Ribbon/Menu bar/Quick Access when adding a Workbook to a 'New Applicat

    There's nothing to click besides Minimize, Restore and Close:
    Attachment 866606

  4. #4
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    2,026

    Re: Why is there no Ribbon/Menu bar/Quick Access when adding a Workbook to a 'New Applicat

    Does pressing Ctrl+Shift+F1 have any effect?

  5. #5
    Registered User
    Join Date
    03-26-2014
    Location
    Norway
    MS-Off Ver
    Microsoft 365 MSO (Version 2403 Build 16.0.17425.20124) 64-bit
    Posts
    33

    Re: Why is there no Ribbon/Menu bar/Quick Access when adding a Workbook to a 'New Applicat

    No! Do you not get the same result when running the code?

  6. #6
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    2,026

    Re: Why is there no Ribbon/Menu bar/Quick Access when adding a Workbook to a 'New Applicat

    No I don't get that.
    Is the ribbon there if you just create the instance, before adding the workbook?
    Please Login or Register  to view this content.
    Also, Not sure if this is necessary as a new instance won't have any workbooks.
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    03-26-2014
    Location
    Norway
    MS-Off Ver
    Microsoft 365 MSO (Version 2403 Build 16.0.17425.20124) 64-bit
    Posts
    33

    Re: Why is there no Ribbon/Menu bar/Quick Access when adding a Workbook to a 'New Applicat

    Is the ribbon there if you just create the instance, before adding the workbook?
    The application closes before I can see.

    On my machine the New Application object often contain other open workbooks.

  8. #8
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    2,026

    Re: Why is there no Ribbon/Menu bar/Quick Access when adding a Workbook to a 'New Applicat

    I don't think the new instance should have any workbooks and usually you have to specifically make the instance visible.

    You could try late binding.
    Please Login or Register  to view this content.
    Are you making use of the personal workbook? If so you could try not doing so and see if that resolves it.

  9. #9
    Registered User
    Join Date
    03-26-2014
    Location
    Norway
    MS-Off Ver
    Microsoft 365 MSO (Version 2403 Build 16.0.17425.20124) 64-bit
    Posts
    33

    Re: Why is there no Ribbon/Menu bar/Quick Access when adding a Workbook to a 'New Applicat

    Running the code in an existing workbook, usually results in the 'New Excel.Application'/'CreateObject("Excel.Application")' object containing the workbook first time around, get new instances thereafter.

    Including '.Visible = True' results in the Ribbon/Menu bar/Quick Access Toolbar showing.

  10. #10
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    2,026

    Re: Why is there no Ribbon/Menu bar/Quick Access when adding a Workbook to a 'New Applicat

    I don't get a new workbook when creating a new instance and I don't think you should unless it's loading something in the Start folder or personal workbook. For me it's also invisible by default.

    At least the ribbon is back though?

  11. #11
    Registered User
    Join Date
    03-26-2014
    Location
    Norway
    MS-Off Ver
    Microsoft 365 MSO (Version 2403 Build 16.0.17425.20124) 64-bit
    Posts
    33

    Re: Why is there no Ribbon/Menu bar/Quick Access when adding a Workbook to a 'New Applicat

    On my machine running this exact code:
    Please Login or Register  to view this content.
    results in no Ribbon/Menu bar/Quick Access Toolbar showing, the question is, why is that.

    Do you get a new workbook if you run code that includes:
    Please Login or Register  to view this content.
    ?

    No the ribbon is not back, including
    Please Login or Register  to view this content.
    is not this exact code
    Please Login or Register  to view this content.

  12. #12
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    2,026

    Re: Why is there no Ribbon/Menu bar/Quick Access when adding a Workbook to a 'New Applicat

    Do you get a new workbook if you run code that includes:
    Copy to clipboard
    Application.Workbooks.Add
    I do, but the ribbon etc is there.

    If it run Set objApplication = New Excel.Application I get new instance which is hidden by default and contains no workbooks but has the ribbon.

  13. #13
    Registered User
    Join Date
    03-26-2014
    Location
    Norway
    MS-Off Ver
    Microsoft 365 MSO (Version 2403 Build 16.0.17425.20124) 64-bit
    Posts
    33

    Re: Why is there no Ribbon/Menu bar/Quick Access when adding a Workbook to a 'New Applicat

    I asked why this exact code:
    Please Login or Register  to view this content.
    results in no Ribbon/Menu bar/Quick Access Toolbar showing.

    You write:
    I don't get a new workbook when creating a new instance and I don't think you should unless it's loading something in the Start folder or personal workbook. For me it's also invisible by default.
    I didn't ask if one gets a new workbook when creating a new appplication object. I didn't ask if a new application object is invisible by default or not.

  14. #14
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,256

    Re: Why is there no Ribbon/Menu bar/Quick Access when adding a Workbook to a 'New Applicat

    Quote Originally Posted by Woulter View Post
    You write:I didn't ask if one gets a new workbook when creating a new appplication object. I didn't ask if a new application object is invisible by default or not.
    Maybe not, but it's relevant. If you use:

    Please Login or Register  to view this content.
    it should fix your issue.
    Remember what the dormouse said
    Feed your head

  15. #15
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    2,026

    Re: Why is there no Ribbon/Menu bar/Quick Access when adding a Workbook to a 'New Applicat

    I can't replicate your issue with the ribbon or the need to retry to create a new instance without a workbook and was hopeful that your remark in post #9 concerning the visible property was indicative of some progress. I'm sorry that doesn't seem to be the case and that I don't have anything else to suggest.
    I'll reference this thread in the Cavalry section: Maybe someone else will have more success.

  16. #16
    Registered User
    Join Date
    03-26-2014
    Location
    Norway
    MS-Off Ver
    Microsoft 365 MSO (Version 2403 Build 16.0.17425.20124) 64-bit
    Posts
    33

    Re: Why is there no Ribbon/Menu bar/Quick Access when adding a Workbook to a 'New Applicat

    I just wonder why the Ribbon/Menu bar/Quick Access Toolbar doesn't show when I run this exact code:
    Please Login or Register  to view this content.
    There is no issue that needs fixing, I just wonder why that exact code does what it does.

  17. #17
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,256

    Re: Why is there no Ribbon/Menu bar/Quick Access when adding a Workbook to a 'New Applicat

    I would say it's a bug. The application shouldn't be visible at all with that code, but making the window maximised seems to force it to appear, but not properly loaded. It may be that that is how it naturally works behind the scenes when it is invisible; after all, why bother with the overhead of loading the ribbon/qat etc if they can't be seen or used?

+ 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] Insert quick access ribbon toolbar buttons.
    By I need excel help in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-20-2024, 02:27 PM
  2. access vba - adding macro shortcut to ribbon
    By terriertrip in forum Access Tables & Databases
    Replies: 2
    Last Post: 03-10-2022, 06:26 PM
  3. Replies: 6
    Last Post: 01-05-2020, 07:10 AM
  4. Macro button under quick access ribbon tab tries to open old Excel file
    By jaryszek in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-22-2019, 08:43 AM
  5. [SOLVED] Adding a 'Function' to the Quick Access Toolbar?
    By terrypin in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-07-2018, 02:48 PM
  6. Quick access in drop down menu for data validation
    By DMan2014 in forum Excel General
    Replies: 2
    Last Post: 09-28-2015, 10:38 PM
  7. Problem with Assigning a Macros to the Ribbon or Quick Access Bar in Excel 2010
    By Benefitus in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-07-2013, 08:12 AM

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