+ Reply to Thread
Results 1 to 2 of 2

VBA User Form to change the Colour of a number of cells using a Button

  1. #1
    Registered User
    Join Date
    04-12-2013
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    7

    VBA User Form to change the Colour of a number of cells using a Button

    Hi, I currently have a spreadsheet that has a large number of seperate cells that I manually change colour depending on what month it is, what I want is a button that will change all the cells a specific colour depending on what month of the year it is (so that I don't have to go and change each cell separately, which is what I do at the moment and is very time consuming) I currently have a user form that has a colour palet with a button that edits the colour and a button to apply the colour to a number of cells, the problem I have is that when you click the apply button the cell colour is unchanged. Please could someone help me?

    The following code is set as the code for the User form:

    Please Login or Register  to view this content.
    And the Following code is used in a class module:

    Please Login or Register  to view this content.
    I would be very grateful if someone could help me with this.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: VBA User Form to change the Colour of a number of cells using a Button

    Hello Nathan44,

    It would be beneficial if you posted your workbook. Having the workbook will reduce the need for questions and allow solutions to be tested before they are posted, saving you time.

    How To Post Your Workbook
    1. At the bottom right of the Reply window, Click the button Go Advanced
    2. At the top of the Your Message Window, in the first row of icons, Click the Paperclip icon.
    3. Click the Add Files button at the top right in the dialog box. This displays the File Manager dialog.
    4. Click the Select Files button at the bottom middle of the dialog.
    5. In the new window Find the file you want to upload, select it, and Click Open.
    6. You will now be back in the File Manager dialog. Click the bottom Middle button Upload File.
    7. Wait until the file has completely uploaded before you exit the File Manager dialog.

    File Manger Picture
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

+ 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] User Form - Hyperlink Button within a Form, to create a Link on a Designated Cell
    By Sinalk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-27-2013, 07:29 AM
  2. using a command button to change certain cells font colour.
    By ncaravela in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-17-2013, 10:08 AM
  3. Filling form fields via worksheet dropdowns, user update via form, change form color
    By Demosthenes&Locke in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-11-2010, 08:58 AM
  4. Replies: 7
    Last Post: 11-27-2008, 10:31 AM
  5. User Form change font colour on entry
    By Loops in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-13-2007, 04:46 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