+ Reply to Thread
Results 1 to 3 of 3

Macro to permently change backcolor on a userform

  1. #1
    Forum Contributor
    Join Date
    12-10-2013
    Location
    Mississippi, United States
    MS-Off Ver
    2016
    Posts
    120

    Macro to permently change backcolor on a userform

    I am trying to change the color on a userform through a macro. I can not simply change in properties becouse the change will be dictated by clicks from the user. Currently what I have changes when ever a macro outside of this userform runs.

    [Sub b_Click()

    B.backcolor = vbred

    End sub()]

  2. #2
    Forum Contributor
    Join Date
    12-10-2013
    Location
    Mississippi, United States
    MS-Off Ver
    2016
    Posts
    120
    Remove any ends from rest of mudule

  3. #3
    Valued Forum Contributor
    Join Date
    11-26-2012
    Location
    Sydney
    MS-Off Ver
    2010
    Posts
    419

    Re: Macro to permently change backcolor on a userform

    You could have a named range in your workbook, perhaps on a hidden sheet, called Background. The value in that range can be changed as required, then in the Initialize event of the form use:
    Please Login or Register  to view this content.

+ 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. Userform backcolor code not working
    By saziz in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-04-2015, 06:39 PM
  2. printing form - BackColor change
    By kmeld in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-27-2013, 10:47 AM
  3. change the backcolor based on excel value
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-08-2011, 04:55 AM
  4. Change TextBox BackColor
    By bdb1974 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-29-2010, 05:07 PM
  5. Macro to change cell backcolor
    By roberto1111 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-16-2009, 04:57 PM
  6. How to change OptionButton 'BackColor' using Macro
    By rmtschanz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-14-2009, 05:49 AM
  7. [SOLVED] Change BackColor
    By Steve in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-11-2005, 11:05 AM

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