Results 1 to 12 of 12

Command color change upon a click

Threaded View

macrofan2012 Command color change upon a... 10-17-2012, 05:13 PM
xLJer Re: Command color change upon... 10-17-2012, 06:31 PM
macrofan2012 Re: Command color change upon... 10-18-2012, 06:43 AM
Jayruss Re: Command color change upon... 10-18-2012, 06:54 AM
macrofan2012 Re: Command color change upon... 10-18-2012, 07:14 AM
Jayruss Re: Command color change upon... 10-18-2012, 08:20 AM
Cutter Re: Command color change upon... 10-18-2012, 10:36 AM
macrofan2012 Re: Command color change upon... 10-18-2012, 10:50 AM
Jayruss Re: Command color change upon... 10-18-2012, 11:18 AM
macrofan2012 Re: Command color change upon... 10-18-2012, 11:40 AM
xLJer Re: Command color change upon... 10-18-2012, 12:13 PM
macrofan2012 Re: Command color change upon... 10-19-2012, 09:28 AM
  1. #1
    Registered User
    Join Date
    09-28-2012
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    65

    Command color change upon a click

    Hi

    I am struggling to find code that will change the command box color once it's pressed, either background color of the command button or text color of the command button. Both would be fabulous...:-D

    I have the below code I got while googling but it does not work though. I already have a macro for copying data from other excel...I just want to amend this code to existing macro.

    With ActiveWorkbook.Sheets(Sheet1).Rectangles.Add(280, 30, 160, 30)
        .OnAction = "CODING"
        .Caption = "MAIN MENU"
        .Font.Size = 25
        .Font.Underline = xlUnderlineStyleSingle
        .Name = "CODING"
        .Interior.Color = RGB(255, 255, 255)
        .Border.Color = RGB(255, 255, 255)
    End With


    I would really appreciate if anyone can help with the right code.

    Thanks in advance.

    Su.
    Last edited by Cutter; 10-17-2012 at 09:15 PM. Reason: Added code tags

Thread Information

Users Browsing this Thread

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

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