+ Reply to Thread
Results 1 to 27 of 27

Add Command Buttons to User Form at Runtime

Hybrid View

  1. #1
    Valued Forum Contributor
    Join Date
    08-29-2012
    Location
    In lockdown
    MS-Off Ver
    Excel 2010 (2003 to 2016 but 2010 for choice)
    Posts
    1,766

    Re: Add Command Buttons to User Form at Runtime

    Well I have been making a lot of progress (thanks to Norie ). See attached.

    A few things I have planned:
    1. Have the buttons placed from left to right then down (instead of down then left to right)
    2. Work out a way to have a visually pleasing number of rows & columns. As can be seen from my sub, I am toying with the idea of using mod (once the number of buttons is greater than 10) to determine whether the number of buttons would fit neatly into X number of columns (say 5/7/9 columns). If no mod found on the desired column options then I will have to choose the number of columns that will have the closest fit (so that there isn't a large empty space on the last row). I'm not sure how to go about that yet.
    Attached Files Attached Files
    *******************************************************

    HELP WANTED! (Links to Forum threads)
    Trying to create reusable code for Custom Events at Workbook (not Application) level

    *******************************************************

+ 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. [SOLVED] Option buttons on a user form
    By Aland2929 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-30-2013, 07:39 AM
  2. [SOLVED] Call command buttons by user-defined names
    By Willardio in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-14-2013, 10:58 AM
  3. command buttons with hyperlink to form
    By stats09 in forum Access Tables & Databases
    Replies: 4
    Last Post: 12-10-2010, 01:20 AM
  4. User Form Option & Command Buttons
    By Information Hog in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-19-2005, 06:37 PM
  5. Code Behind Buttons on User Form
    By robertguy in forum Excel General
    Replies: 0
    Last Post: 02-09-2005, 11:53 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