+ Reply to Thread
Results 1 to 3 of 3

Custom UI editor for excel... They missed something!!!

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    03-07-2013
    Location
    Montreal
    MS-Off Ver
    Excel 2007
    Posts
    274

    Custom UI editor for excel... They missed something!!!

    Hello,

    Ok, I followed the video at:

    https://www.youtube.com/watch?v=ZTt2FFyj2Fo

    The only problem is when I click on a custom button on the ribbon, the only way it runs the macro (My sub called xxx) is if its in a module!!!! But my sub xxx() needs to be ran while residing in sheet1 of the project !!!

    And that's because, the Worksheet_Change() event gets automatically and purposely called by sub xxx()!

    So I tried making a dummy sub in a module which then calls my Sub xxx() and the dummy sub can't call Sub xxx() because it claims it doesn't see its definition .....

    What now....

    Because of these two conditions (which I have been testing all day ) I think Excel missed something here!

    IF:

    - It is impossible to call a sub residing in sheet1 code from a module ????

    and

    - It is impossible for ribbon button to call a sub residing in sheet1 code ???

    Then what is one suppose to do when he has code in sheet1 and needs it to be executed from a custom ribbon button

    Anyone have a work around to this!

    Thanks all
    RN

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Custom UI editor for excel... They missed something!!!

    Hi,

    Try to assign the macro to 'Sheet1.xxx' in the ribbon Button. Sheet1 is the Excel Code name for the sheet, not the name that the User sees (which can also be Sheet1).

    If you still need help, please upload a sample workbook that contains the macro and the ribbon button.

    Lewis

  3. #3
    Forum Contributor
    Join Date
    03-07-2013
    Location
    Montreal
    MS-Off Ver
    Excel 2007
    Posts
    274

    Re: Custom UI editor for excel... They missed something!!!

    Haaaaaa Lewis!!!!

    You are my savior !!!!!

    Your suggestion worked....

    Thank you very very much for your help!

    Rn

+ 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. Macros and Custom UI editor
    By gostavee in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-17-2015, 02:37 PM
  2. Assistance with Custom Tab and Groups on Excel Office Ribbon using Custom UI Editor.
    By sdavison in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-15-2015, 06:13 AM
  3. [SOLVED] Custom UI Editor---->ComboBox Question
    By HerryMarkowitz in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 08-23-2014, 07:20 AM
  4. [SOLVED] Custom UI Editor
    By britinva in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-04-2014, 09:10 AM
  5. How to create custom tabs using CUSTOM UI EDITOR in excel 2007
    By narendrabr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-10-2014, 12:38 PM

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