+ Reply to Thread
Results 1 to 3 of 3

Hide or deactivate a ribbon button

Hybrid View

  1. #1
    Registered User
    Join Date
    11-13-2013
    Location
    Trollhättan, Sweden
    MS-Off Ver
    Excel 2007
    Posts
    22

    Hide or deactivate a ribbon button

    Hi.
    Ive made a custom ribbon and it works at is should.
    But the problem that poped up is ->
    The UF pulls info from range a3:a1000 on active page (correct page is "SS")
    If u activate the "Data" sheet it pulls the info from that page instead.

    So is there a easy code to hide/deactivate the "inmatning" button on the ribbon when the "Data" sheet is activated?

    The added buttons are under "frollic" tab.
    Any hints or help is appreciated

    Regards Zeroaim
    Attached Files Attached Files

  2. #2
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Hide or deactivate a ribbon button

    You must use a getVisible callback to hide the control. Or you may change your code to refer to the correct sheet all the time:
        For Each Cell In Sheets("SS").Range("A2:A1000")
    Also you have two public constants with the same name in your project.
    Last edited by Izandol; 11-29-2013 at 05:51 AM.

  3. #3
    Registered User
    Join Date
    11-13-2013
    Location
    Trollhättan, Sweden
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Hide or deactivate a ribbon button

    Thx Izandol
    The fix was simple and it feels like a "doh" moment now for me

+ 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] Deactivate option button and cell
    By mani_bbc05 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-24-2013, 06:11 PM
  2. [SOLVED] How to deactivate selection in Macro button
    By tnuis in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-03-2013, 03:29 PM
  3. [SOLVED] Hide Ribbon
    By pedjvak in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-31-2013, 03:01 AM
  4. Deactivate X (Close button) when using FileDialog
    By Fredriksson in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-26-2007, 07:18 PM
  5. [SOLVED] activate/deactivate button with macro at given condition
    By arcq in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-17-2005, 02:06 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