+ Reply to Thread
Results 1 to 3 of 3

Using macro to create a Form Control Button and Assign macro to it in a specified Cell

  1. #1
    Registered User
    Join Date
    09-20-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    18

    Using macro to create a Form Control Button and Assign macro to it in a specified Cell

    Hi,

    Can someone please help me with a macro that can create a form control button and assign another macro to it, I would like to have control over where the button is created.

    I have a code that allows me to create checkboxes but I'm not sure how to modify it for buttons and also to add macros.

    Please Login or Register  to view this content.
    Thanks alot!

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

    Re: Using macro to create a Form Control Button and Assign macro to it in a specified Cell

    Hi weige1989,

    You're doing fine.

    To add a Macro you need .OnAction:
    Please Login or Register  to view this content.
    To add a Forms CommandButton:
    Please Login or Register  to view this content.
    To see how to add other types of Forms Controls, the 'MacroRecorder' may help you obtain the correct syntax.

    Lewis
    Last edited by LJMetzger; 10-30-2014 at 06:22 AM.

  3. #3
    Registered User
    Join Date
    09-20-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Using macro to create a Form Control Button and Assign macro to it in a specified Cell

    It works, exactly what I needed. Thanks!

+ 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. Replies: 0
    Last Post: 01-15-2013, 08:18 PM
  2. how to assign a different macro to each*combobox selection in form control....
    By kritigupta in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-03-2012, 03:04 AM
  3. how to assign a different macro to each*combobox selection in form control....
    By kritigupta in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-02-2012, 07:51 PM
  4. A macro to create a form button, assign a macro and name the button
    By cl361 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-11-2008, 01:07 AM
  5. Assign Macro to Button control
    By krishnarao in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-15-2007, 04:25 AM

Tags for this Thread

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