+ Reply to Thread
Results 1 to 5 of 5

Using command buttons vba in frame in excel 2010

  1. #1
    Registered User
    Join Date
    05-11-2014
    MS-Off Ver
    Excel 2003
    Posts
    36

    Using command buttons vba in frame in excel 2010

    Hi guys thanks for reading this. Does any one know how to write vba code for a command button in a frame on a userform. When i double click the command button after creating the object in a frame nothing happens and when i right click it the view code is greyed out. I have tried reference the command button but nothing works can anyone please help

    Thabks in advance

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Using command buttons vba in frame in excel 2010

    You should be able to create code for a button in a frame in the same way as one not in a frame.

    What happens it you manually add code like this.

    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    05-11-2014
    MS-Off Ver
    Excel 2003
    Posts
    36

    Re: Using command buttons vba in frame in excel 2010

    Hi norie thanks for your reply. It wont let you put a code for the button i have tried the code you suggested in the userform initialze sub but nothing happens

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Using command buttons vba in frame in excel 2010

    The code I posted is a sub in itself, it would go in tge userform module.

    The only thing you need to do is to change buttonname to the actual name of the button in the frame.

  5. #5
    Registered User
    Join Date
    05-11-2014
    MS-Off Ver
    Excel 2003
    Posts
    36

    Re: Using command buttons vba in frame in excel 2010

    Ok norie ill give that a go tomorrow thanks for your help

+ 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. "Fix" for disappearing Command Buttons in Excel 2010
    By moosetales in forum Tips and Tutorials
    Replies: 4
    Last Post: 04-20-2014, 05:48 PM
  2. How can I insert multiple sets of option buttons (radio buttons) in Excel 2010?
    By mickwooduclan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-25-2013, 10:01 AM
  3. Useform Code - 12 Command Buttons dependant on other command buttons
    By darrenkaye in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-20-2013, 10:58 AM
  4. Replies: 2
    Last Post: 12-26-2011, 08:10 PM
  5. multipage - option buttons disappear from frame in Excel 2003
    By j b corner in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-30-2005, 12:25 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