+ Reply to Thread
Results 1 to 2 of 2

Run Logon button under custom ribbon tab using VBA

  1. #1
    Registered User
    Join Date
    05-20-2013
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    52

    Run Logon button under custom ribbon tab using VBA

    Hi Guru

    I have custom ribbon tab in my excel 2010 & there is a Logon button under that tab..

    Whenever user open the excel then it should directly run the Logon button ..

    Is is possible with VBA ? Please refere attached doc

    Thanks !!
    Attached Files Attached Files
    Last edited by v2k2apj; 08-22-2013 at 04:11 PM.

  2. #2
    Registered User
    Join Date
    05-20-2013
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    52

    Re: Run Logon button under custom ribbon tab using VBA

    Hi..I got the solution & so thought to share so that it will be helpful for others..

    the below code will run when excel open & it sends key ALT -> Y ->Y1 which will activiate the button..

    Private Sub Workbook_Open()

    Application.SendKeys "%YY1"

    End Sub

    refer below link for details :

    http://www.excelguru.ca/blog/2008/08...on-the-ribbon/

+ 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. Populate dropDown in a custom ribbon on clicking a button
    By johnjacobt in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-01-2011, 05:02 AM
  2. Custom Ribbon Add-in
    By yawnzzzz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-11-2011, 09:46 AM
  3. Custom ribbon button will not check checkboxes
    By ericsastud in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-29-2010, 03:43 PM
  4. Excel 2007 : Custom Ribbon
    By LB79 in forum Excel General
    Replies: 23
    Last Post: 10-07-2010, 06:27 AM
  5. Assigning a macro to a custom button in 2007 ribbon
    By dcgrove in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-14-2009, 05:50 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