+ Reply to Thread
Results 1 to 5 of 5

How to programmatically create a macro button usinf VBA

  1. #1
    Forum Contributor
    Join Date
    10-12-2018
    Location
    Leesburg, FL
    MS-Off Ver
    2013
    Posts
    113

    How to programmatically create a macro button usinf VBA

    I want to be able to create a button that will be associated within an add-in I have written in VBA.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: How to programmatically create a macro button usinf VBA

    Using the macro recorder, you can get somewhat of an idea what the code would look like.

  3. #3
    Forum Contributor
    Join Date
    10-12-2018
    Location
    Leesburg, FL
    MS-Off Ver
    2013
    Posts
    113

    Re: How to programmatically create a macro button usinf VBA

    Quote Originally Posted by davesexcel View Post
    Using the macro recorder, you can get somewhat of an idea what the code would look like.
    I tried that, but it didn't show anything. I started the recorder, customize QAT, selected macros and selected an existing one to add to the toolbar. The macro recording was empty. Is there something I am doing incorrectly?

  4. #4
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: How to programmatically create a macro button usinf VBA

    Perhaps this link could be of help?

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

    Alf

  5. #5
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: How to programmatically create a macro button usinf VBA

    You originally said you wanted to create a button, you did not say you wanted to add a button to a toolbar.

+ 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. 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
  2. [SOLVED] Programmatically put an image on a button
    By quartz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-15-2006, 01:55 PM
  3. add button to UserForm programmatically
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-01-2006, 08:10 AM
  4. Usinf function in macro
    By hurriance in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-12-2006, 03:45 PM
  5. [SOLVED] programmatically create a macro
    By Jim Warren in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-16-2005, 07:06 PM
  6. Assign a macro in a different workbook to a button programmatically
    By ctg in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-16-2005, 10:36 AM
  7. how do i programmatically insert a button on a worksheet
    By Qaspec in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-02-2005, 02:06 AM
  8. [SOLVED] Can I programmatically simulate clicking the 'stop macro' button in the VBE?
    By Alan in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-23-2005, 10:07 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