+ Reply to Thread
Results 1 to 8 of 8

VBA: Is there a way to change the background color a SPILL range?

  1. #1
    Forum Contributor
    Join Date
    07-16-2009
    Location
    DutchLand
    MS-Off Ver
    Excel MacOS 16
    Posts
    161

    VBA: Is there a way to change the background color a SPILL range?

    Dear all,

    Is there a way to change the background color a SPILL range?

    I would like to color the background and/or text color of a SPILL range to create a better visual design.

    Can do that using conditional formatting but it is unknown how deep the area should be prepared and the calculation is slower.

    Thank you very much

    LA

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,061

    Re: Is there a way to change the background color a SPILL range?

    CF is the only way I know of doing that. I would use =B2<>"" as the CF formula.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Contributor
    Join Date
    07-16-2009
    Location
    DutchLand
    MS-Off Ver
    Excel MacOS 16
    Posts
    161

    Re: Is there a way to change the background color a SPILL range?

    Quote Originally Posted by Glenn Kennedy View Post
    CF is the only way I know of doing that. I would use =B2<>"" as the CF formula.

    Hi,

    Thank you for your reply.

    I do/did use that for now.

    Looking ( read- searching ) right now for some VBA code that can a SPILL Range.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,061

    Re: Is there a way to change the background color a SPILL range?

    LoL. Don't look in my direction. I have no, zero, zip, stuff-all ability with VBA.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Is there a way to change the background color a SPILL range?

    I'll move this to the VBA section.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  6. #6
    Forum Expert
    Join Date
    01-25-2011
    Location
    Belgium, Alveringem
    MS-Off Ver
    Excel 2003, 2007, 365
    Posts
    1,418

    Re: VBA: Is there a way to change the background color a SPILL range?

    hello, you can test it for a cell with range.hasSpill, but it's not very handy.
    Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

  7. #7
    Forum Contributor
    Join Date
    07-16-2009
    Location
    DutchLand
    MS-Off Ver
    Excel MacOS 16
    Posts
    161

    Re: VBA: Is there a way to change the background color a SPILL range?

    Thank you for your info.

    Will later tonight looking into this.

    Why is it not very handy?
    If I check the frist top right cell where the SPILL formula lives in then I should get the result SPILL range, right? Or is there any issue?

    AAArch, if I am right you have to select a range and then you will get true or false back if it is a SPILL.

    But I found this;

    Please Login or Register  to view this content.
    anyway is for later tonight. Need to read it.
    Last edited by lord anubis; 05-01-2023 at 02:14 PM.

  8. #8
    Forum Contributor
    Join Date
    07-16-2009
    Location
    DutchLand
    MS-Off Ver
    Excel MacOS 16
    Posts
    161

    Re: VBA: Is there a way to change the background color a SPILL range?

    Btw, I forgot to mention that If I know the number of columns I could use CountA(Cell#) then divide the answer with the number of columns and I know the number of Rows ( thus also the Range). But ( Vertical SPILL ), in this case, I don't know the number of columns.

+ 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] Change background color of duplicate, clear duplicates & leave background color changed
    By Ajaxs87 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-06-2023, 12:09 AM
  2. change background textbox color based on text color in cell
    By atadaliran in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-05-2021, 05:34 AM
  3. Replies: 8
    Last Post: 04-02-2016, 04:00 AM
  4. Change a Range's cell background color to that of another cell's cond. format color
    By kamelkid2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-31-2014, 12:57 PM
  5. Change cell background color based on another cells background color
    By Queo in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 4
    Last Post: 06-10-2014, 05:28 AM
  6. [SOLVED] Macro to change all cells with a certain background color in another background color
    By kevinvzandvoort in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-13-2012, 11:04 AM
  7. Replies: 1
    Last Post: 01-09-2006, 05: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