+ Reply to Thread
Results 1 to 20 of 20

Floating selectable colors table

  1. #1
    Forum Contributor
    Join Date
    04-22-2017
    Location
    AU
    MS-Off Ver
    Microsoft 365
    Posts
    291

    Floating selectable colors table

    Hello,
    Trying to create a selectable colors table which floats around a Spreadsheet – a ange of 15 different colors
    Currently, if I want to change a color, I use Format Painter, but is a multiple step process having to go to an existing colored cell, go to the Menu Bar, select Painter, then go to the cell I want to color.
    It becomes a time consuming multi-step process.
    Hoping there is something available like:
    See attached example where have created a range of colors and Saved as picture which I can manually drag about a sheet – not selectable within the picture.
    What I would like is to select a color from within a floating table, and directly paste as background color into chosen cell/s. Two clicks – one in the floating table to select, and one into the chosen cell/s.
    Multiple windows works but still many steps switching screens etc to achieve my “wish’.
    Any suggestions including VBA would be appreciated please.
    Attached Files Attached Files

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Floating selectable colors table

    This requires VBA so I have moved it to the VBA forum.

    This solution presents a floating UserForm that stays displayed until you close it. The form shows a color pallette that is read by looking at the 16 colors on sheet Color Picker. This allows you to change the desired colors without having to change code.

    The bottom center button toggles color mode on and off. Before turning color mode on, you must select a color.

    When the bottom center button shows that color picker mode is on, any worksheet cell that you click on will be filled with that color. You may select a different color at any time, regardless of whether the mode is on or off.

    You may click the bottom center button to turn the mode on and off. When the mode is off, the form is still displayed, but selected cells will not be colored.

    This has been set up to apply only to Sheet1. If you have multiple sheets and you want the same effect on every sheet, let me know.
    Attached Files Attached Files
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Contributor
    Join Date
    04-22-2017
    Location
    AU
    MS-Off Ver
    Microsoft 365
    Posts
    291

    Re: Floating selectable colors table

    Fantastic solution. Thankyou 6String
    After trying various and thought about this a little more, complete wish list is detailed on attached.
    I know some of the items listed can be done separately but I am hoping to achieve a smarter solution involving fewer steps.
    Hope you can assist please.
    Would need to add VBA to an existing Workbook
    I note support VBA codes supplied thankyou.
    Is the complete wish list code likely to be available please? (appropriate recognition of course)
    As a moderator, you have my permission to send code to my registered email address please.
    Attached Files Attached Files

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Floating selectable colors table

    Quote Originally Posted by VisionSmart View Post
    Fantastic solution. Thankyou 6String
    You are welcome!
    After trying various and thought about this a little more, complete wish list is detailed on attached.
    I know some of the items listed can be done separately but I am hoping to achieve a smarter solution involving fewer steps.
    Hope you can assist please.
    Would need to add VBA to an existing Workbook
    I note support VBA codes supplied thankyou.
    Is the complete wish list code likely to be available please? (appropriate recognition of course)
    I did quite a bit of work for free to provide this solution because I thought it was an interesting problem. However, you seem to be interested in asking people to develop a bespoke solution, rather than asking questions about how to solve specific issues as you develop it yourself. If you have a further "wish list" that you are looking for someone else to do for you, then I suggest our Commercial Forum where you can offer payment. Or you can start a new thread with your wish list in hopes that someone else may be willing to do it for free.
    As a moderator, you have my permission to send code to my registered email address please.
    Being a moderator does not give me access to your email address.

    Cheers,

  5. #5
    Forum Contributor
    Join Date
    04-22-2017
    Location
    AU
    MS-Off Ver
    Microsoft 365
    Posts
    291

    Re: Floating selectable colors table

    Thank you again 6String

    I am working on this item as part of a project for an amateur sporting organisation - so I am pro-bono as well.

    How do I broadcast the inquiry to the wider no-fee community please?

    Data Form is new to me - so need to do lots of homework there

    Meanwhile, if your proposal of the Multi-Tab version is still available, would appreciate an updated version

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Floating selectable colors table

    Multisheet version was a quick change, attached. There is still just one button to bring up the color form. This could be located just about anywhere you want.

    I did look at the file you attached and I didn't see anything that looked like a wish list. It looked like an update to your original file, rather than the solution I provided.

    I would suggest starting a new thread, which will get more attention than this one that is already underway. That is the best way to get attention. Also, traffic is slow on weekends and you might the best response waiting until early Monday.
    Attached Files Attached Files

  7. #7
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Floating selectable colors table

    By the way, the solution I provided is a little advanced, even for someone familiar with VBA. I can walk you through it if you're interested in learning about it, but it will take some time.

  8. #8
    Forum Contributor
    Join Date
    04-22-2017
    Location
    AU
    MS-Off Ver
    Microsoft 365
    Posts
    291

    Re: Floating selectable colors table

    Thanks again 6String

    I sent you the incorrect amended WB with my wish list - correct on e is now attached.
    Attached Files Attached Files

  9. #9
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Floating selectable colors table

    I reviewed your wish list, and you are basically looking to hire an Excel consultant. The general feel of this forum is questions like, "I am solving an Excel problem and am stuck on something. Can you help me figure this thing out?" Your question is more like, "I have requirements for an advanced Excel feature and I would like someone to build it for me." Your wish list is very doable but would be a lot of work. Consider posting to our Commercial Services forum. It has a FAQ to explain how points work and how to post.

    When you find someone willing to take on this project you will need to consider the following items from your list:

    * Color painting to have no effect on any data / formula / data validation list already in a cell
    This is already true of the solution I provided.

    * Still able to lock / hide cells and formulae whether colored or not
    This is already true of the solution I provided.

    * Need to add as VBA to current WorkBook. Maybe activate via Macro?
    I don't understand what you mean by this. It is activated by macro. Maybe you mean that you would like this to be an add-in so you can use it in any workbook.

    * Need to use Color Picker on up to 22 Tabs (Sheets) at same time
    This is already true of the (second) solution I provided. There is no limit to what sheets

  10. #10
    Forum Contributor
    Join Date
    04-22-2017
    Location
    AU
    MS-Off Ver
    Microsoft 365
    Posts
    291

    Re: Floating selectable colors table

    Many thanks for your recommendations, suggestions and feedback 6String.
    If I proceed down the open forum, do I use the General Tab or VBA for a new posting?
    Do you have any objection to my proposing the project become enhancements to the work you have completed please? as you point out most of the basic parts is already included thanks to your efforts. I believe what I now seek is cosmetics to make the display smaller and vertical as per VisionSmart=Floating_2+All Sheets-B as attached
    My thinking regarding the Macro option was instead of creating an Add-in function, a Macro button could start the process and then use the end option (already in your version) to end the option. - Not absolutely critical so can work without it.

    Your advice please.
    Attached Files Attached Files

  11. #11
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Floating selectable colors table

    I would suggest the VBA forum, because your problem absolutely requires VBA.

    I have no objection at all to publishing what I already provided. I provided it free of charge with no claims, and it's already posted here anyway

    When you say "macro button" do you mean in the Ribbon? Because my solution includes a button that starts the macro. To put a button in the Ribbon you could put my macro modules (form and other code) into your PERSONAL.XLSB file so it will always be available to any workbook. To give this to other people to use, it would be better to make it an add-in.

  12. #12
    Forum Contributor
    Join Date
    04-22-2017
    Location
    AU
    MS-Off Ver
    Microsoft 365
    Posts
    291

    Re: Floating selectable colors table

    I plan to raise a new incident a in the VBA section

    Mean while, I plan to trial your solution as is in two days time at a sporting event.
    One item you may be able to advise on now please - How can I make the start button start from any tab as well as the original tab
    I Have copied and pasted the button elsewhere but is does not activate from these other tabs?
    Alternatively, how do I place the start button in the ribbon so it will start no matter what Tab is in use?
    Have been reading up on Data forms(great tool) and VBA etc - but lots to learn moving forward

  13. #13
    Forum Contributor
    Join Date
    04-22-2017
    Location
    AU
    MS-Off Ver
    Microsoft 365
    Posts
    291

    Re: Floating selectable colors table

    Hello again.

    The attached created by 6String (thankyou) works great from the Forms.CommandButton.1 located in a Tab.
    How do I 'duplicate' this Activate Color Picker button command so it can used from a Macro (already created) so I don't have to open the tab and can start the Color Picker from any Tab in a workbook via the Macro Menu?
    Attached Files Attached Files
    Last edited by VisionSmart; 06-12-2017 at 10:46 PM.

  14. #14
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Floating selectable colors table

    Hello VisionSmart,

    ...Forms.CommandButton.1..
    It is not a Forms Button, but an Active-X Control Button. If you would like to copy it to other Tabs, you also have to Copy the Properties of the Button by Right Clicking with your Mouse on the Button, and Copy the Button Name as well, as demonstrated in the attached sample File.

    Regards.
    Attached Files Attached Files
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  15. #15
    Forum Contributor
    Join Date
    04-22-2017
    Location
    AU
    MS-Off Ver
    Microsoft 365
    Posts
    291

    Re: Floating selectable colors table

    Thankyou Winon. I get that and works fine, Now is there a way I can create a working macro in the Macro Menu which 'points' to the Active-X?
    Reason being some of the Tabs in my planned workbook will be protected and hidden. If I can use a Menu Macro to start the color picker, I don't need to open Tabs.

  16. #16
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Floating selectable colors table

    Hi VisionSmart,

    Unfortunately that request would fall within the scope of What 6StringJazzer has posted in Post# 9.

    ...Your question is more like, "I have requirements for an advanced Excel feature and I would like someone to build it for me." Your request is very doable but would be a lot of work". Consider posting to our Commercial Services forum. It has a FAQ to explain how points work and how to post.
    Regards.

  17. #17
    Forum Contributor
    Join Date
    04-22-2017
    Location
    AU
    MS-Off Ver
    Microsoft 365
    Posts
    291

    Re: Floating selectable colors table

    Further to the attached Floating Colors, When I password protect the Tab, I get a runtime error

    See attached which contains error message and UserInterFaceOnly

    Suggested solution please?
    Attached Files Attached Files
    Last edited by VisionSmart; 06-27-2017 at 08:26 AM.

  18. #18
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Floating selectable colors table

    Hello VisionSmart,

    Enter the Code you have for the WorkBook Open Event as;

    Please Login or Register  to view this content.

    You may then try this Code with the Button on Sheet1;

    Please Login or Register  to view this content.
    You may also Copy the Button to the other Sheet/s, as I have done with Sheet2, and use Code similar to below;

    Please Login or Register  to view this content.
    Please try the attached Sample.

    Regards.
    Attached Files Attached Files

  19. #19
    Forum Contributor
    Join Date
    04-22-2017
    Location
    AU
    MS-Off Ver
    Microsoft 365
    Posts
    291

    Re: Floating selectable colors table

    That worked a treat - I had not thought about keeping protected all the time and then unprotect as required.
    Appreciate the assistance.
    thankyou Winon.
    I tried to Add Reputation but system says I have to spread around.
    Don't see the logic here as you are the only suggestion.
    Last edited by VisionSmart; 07-02-2017 at 01:59 AM.

  20. #20
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Floating selectable colors table

    Hi VisionSmart,

    You are welcome, glad I could help.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Thanks.

+ 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. Selectable table of contents of a specific folder
    By sungen99 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-14-2015, 12:58 PM
  2. [SOLVED] sort table data by selectable headers
    By bwanaal in forum Excel General
    Replies: 1
    Last Post: 04-04-2014, 06:01 AM
  3. Replies: 3
    Last Post: 12-11-2013, 04:59 PM
  4. floating table
    By lauro in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-29-2011, 06:15 PM
  5. Floating table
    By tony.nz in forum Excel General
    Replies: 2
    Last Post: 06-03-2011, 11:54 AM
  6. Pivot Table: Columns not selectable as fields
    By Oaki in forum Excel General
    Replies: 1
    Last Post: 09-15-2009, 07:55 PM
  7. Floating Table in Excel
    By Michael Link in forum Excel General
    Replies: 0
    Last Post: 05-18-2006, 08:15 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