Hello,
I'm new to this blog and new-ish to Excel, so hopefully you more savvy users can offer some help. I have a worksheet that I've divided into three "background" colors, if you will. (I call these background colors, but I created this formatting with just the normal Fill function.) Then "on top" of these background colors I often highlight some cells with additional colors. My hope is to be able to copy/cut-and-paste between the three regions while retaining only the highlight colors. I do not want to transfer the background color, and I'm indifferent to all other formatting. (It's identical between the three regions.) Is there a simple fix for this? Perhaps a way to define a true default background color, not just use Fill as I did? I searched online with no success. As it stands now, when I paste an area containing both the background color and highlighted cells, I have a lot of tedious tidying up afterwards. If I use Paste Values, the pasted cells adopt the new background color, but don't retain the highlights. If I use the default Paste function, I have to manually modify the background color after pasting. Lastly, when I CUT-and-paste (rather than copy), I have to fill in the white gap left in the wake of the cut cells.
I will have to use this file very frequently, so any help is much appreciated. I have a rudimentary understanding of VBA, and would gladly implement VBA code that anybody suggests. I considered a For Each command that would assess the color of each cell in a copied range, and then paste either without formatting (if the cell's color is one of the three background colors) or with formatting (if the cell's color is not a background color). I don't know if this is really feasible, but before I even attempted to code, it occurred to me that when pasting, the current Selection is not the copied cells, but rather the target cells. Trying to work around that would be out of my skillset.
Thanks in advance!
-E
I'm new to this blog and new-ish to Excel, so hopefully you more savvy users can offer some help. I have a worksheet that I've divided into three "background" colors, if you will. (I call these background colors, but I created this formatting with just the normal Fill function.) Then "on top" of these background colors I often highlight some cells with additional colors. My hope is to be able to copy/cut-and-paste between the three regions while retaining only the highlight colors. I do not want to transfer the background color, and I'm indifferent to all other formatting. (It's identical between the three regions.) Is there a simple fix for this? Perhaps a way to define a true default background color, not just use Fill as I did? I searched online with no success. As it stands now, when I paste an area containing both the background color and highlighted cells, I have a lot of tedious tidying up afterwards. If I use Paste Values, the pasted cells adopt the new background color, but don't retain the highlights. If I use the default Paste function, I have to manually modify the background color after pasting. Lastly, when I CUT-and-paste (rather than copy), I have to fill in the white gap left in the wake of the cut cells.
I will have to use this file very frequently, so any help is much appreciated. I have a rudimentary understanding of VBA, and would gladly implement VBA code that anybody suggests. I considered a For Each command that would assess the color of each cell in a copied range, and then paste either without formatting (if the cell's color is one of the three background colors) or with formatting (if the cell's color is not a background color). I don't know if this is really feasible, but before I even attempted to code, it occurred to me that when pasting, the current Selection is not the copied cells, but rather the target cells. Trying to work around that would be out of my skillset.
Thanks in advance!
-E