Results 1 to 8 of 8

Changing spinbutton colors independantly or creating a custom one.

Threaded View

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

    Re: Changing spinbutton colors independantly or creating a custom one.

    Hi Fran蔞is,

    See the attached file which creates Faux two independent grouped shapes that look like your picture.

    The following instructions for creating the shapes are included in the file:
    a. Create a Forms CommandButton or any Shape of your Choice. Remove text from the Shape if needed.
    b. Create an AutoShape Triangle. Fill the triangle with the appropriate color. Rotate the triangle if needed.
    c. Place the triangle inside the CommandButton. Change the shape sizes as required.
    d. Right Click the First Shape and Select Order > Send to Back. This will make sure the Triangle is always visible.
    e. Left Click the First Shape. Press the CTRL key and Left Click the Triangle.
    f. Right Click the Green Circle on the Triangle and Select Grouping > Group.
    g. Rename the Grouped Shape to 'Group1SpinUp' or any name of your choice.
    To rename the grouped shape, 'Right Click' the grouped shape. Press ALT F8 to make the Macro menu visible. 'Double Click' on 'RenameActiveShape'.
    h. 'Right Click' the Grouped Shape and Select 'Assign Macro'. 'Double Click' on Group1SpinUpEventHandler or any existing macro of your choice.

    i. Create 'Group1SpinDown' Shape using macro 'Group1SpinDownEventHandler' in a similar manner.

    This should help you get started.
    If you need additional help, more information is needed such as:
    a. The number of SpinButtons you need. If you have a lot of SpinButtons, the event handler code can be made that only one Event Handler is needed to process any SpinButton event.
    b. What the SpinButtons are supposed to do (codewise).

    Lewis

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 06-01-2011, 12:00 PM
  2. [SOLVED] spinbutton enabled = false not changing colour
    By RB Smissaert in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-14-2006, 07:10 AM
  3. [SOLVED] custom colors for pie charts
    By Moh in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 04-28-2006, 01:35 PM
  4. Cant run vba code independantly.
    By matpj in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-20-2006, 11:20 AM
  5. [SOLVED] Changing the SpinButton value in Workbook_Open()
    By Tony Steane in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-15-2005, 08:06 PM

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