How to permanently color a column in Excel












0















How do you set a column or row to always be a certain color even when adding rows or columns? If you shade/color a column normally, when you add a row or copy paste another cell into that column it will be with no fill or with the fill of the copied cell, respectively. I want column A to always be blue no matter what. Can this be achieved?










share|improve this question



























    0















    How do you set a column or row to always be a certain color even when adding rows or columns? If you shade/color a column normally, when you add a row or copy paste another cell into that column it will be with no fill or with the fill of the copied cell, respectively. I want column A to always be blue no matter what. Can this be achieved?










    share|improve this question

























      0












      0








      0








      How do you set a column or row to always be a certain color even when adding rows or columns? If you shade/color a column normally, when you add a row or copy paste another cell into that column it will be with no fill or with the fill of the copied cell, respectively. I want column A to always be blue no matter what. Can this be achieved?










      share|improve this question














      How do you set a column or row to always be a certain color even when adding rows or columns? If you shade/color a column normally, when you add a row or copy paste another cell into that column it will be with no fill or with the fill of the copied cell, respectively. I want column A to always be blue no matter what. Can this be achieved?







      microsoft-excel microsoft-excel-2010






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked May 1 '16 at 14:02









      alnafiealnafie

      10816




      10816






















          2 Answers
          2






          active

          oldest

          votes


















          0














          If you place these event routines in the worksheet code area, column A will remain blue most of the time:



          Private Sub Worksheet_Change(ByVal Target As Range)
          Range("A:A").Interior.Color = 12611584
          End Sub

          Private Sub Worksheet_SelectionChange(ByVal Target As Range)
          Range("A:A").Interior.Color = 12611584
          End Sub


          You can temporarily change a column A cell's color, but it will return to blue once you change selection.



          You can override the effect by disabling Events or by disabling macros in general.



          (using this technique may cause your worksheet to become sluggish.)






          share|improve this answer


























          • Thanks. I was hoping for a solution without using code.

            – alnafie
            May 2 '16 at 7:47



















          0














          You could try conditional formatting:



          Select entire sheet.



          Conditional Formatting
          -> Add New Rule
          -> Use a formula to determine which cells to format



          Enter formula:



          =IF(COLUMN(A1)=1,TRUE,FALSE)


          or just



          =COLUMN(A1)=1


          (both the same result - just depends which syntax you feel more comfortable with)



          This will check for each cell (you put A1 in because you put it in for the top-left cell of the selection, so A1 because you selected everything - it'll work itself out for the rest of the sheet accordingly)...
          ...whether its column number is 1 - which will only be the case for column A.



          Then pick the formatting you want and click OK, and you're done.






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1071822%2fhow-to-permanently-color-a-column-in-excel%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            If you place these event routines in the worksheet code area, column A will remain blue most of the time:



            Private Sub Worksheet_Change(ByVal Target As Range)
            Range("A:A").Interior.Color = 12611584
            End Sub

            Private Sub Worksheet_SelectionChange(ByVal Target As Range)
            Range("A:A").Interior.Color = 12611584
            End Sub


            You can temporarily change a column A cell's color, but it will return to blue once you change selection.



            You can override the effect by disabling Events or by disabling macros in general.



            (using this technique may cause your worksheet to become sluggish.)






            share|improve this answer


























            • Thanks. I was hoping for a solution without using code.

              – alnafie
              May 2 '16 at 7:47
















            0














            If you place these event routines in the worksheet code area, column A will remain blue most of the time:



            Private Sub Worksheet_Change(ByVal Target As Range)
            Range("A:A").Interior.Color = 12611584
            End Sub

            Private Sub Worksheet_SelectionChange(ByVal Target As Range)
            Range("A:A").Interior.Color = 12611584
            End Sub


            You can temporarily change a column A cell's color, but it will return to blue once you change selection.



            You can override the effect by disabling Events or by disabling macros in general.



            (using this technique may cause your worksheet to become sluggish.)






            share|improve this answer


























            • Thanks. I was hoping for a solution without using code.

              – alnafie
              May 2 '16 at 7:47














            0












            0








            0







            If you place these event routines in the worksheet code area, column A will remain blue most of the time:



            Private Sub Worksheet_Change(ByVal Target As Range)
            Range("A:A").Interior.Color = 12611584
            End Sub

            Private Sub Worksheet_SelectionChange(ByVal Target As Range)
            Range("A:A").Interior.Color = 12611584
            End Sub


            You can temporarily change a column A cell's color, but it will return to blue once you change selection.



            You can override the effect by disabling Events or by disabling macros in general.



            (using this technique may cause your worksheet to become sluggish.)






            share|improve this answer















            If you place these event routines in the worksheet code area, column A will remain blue most of the time:



            Private Sub Worksheet_Change(ByVal Target As Range)
            Range("A:A").Interior.Color = 12611584
            End Sub

            Private Sub Worksheet_SelectionChange(ByVal Target As Range)
            Range("A:A").Interior.Color = 12611584
            End Sub


            You can temporarily change a column A cell's color, but it will return to blue once you change selection.



            You can override the effect by disabling Events or by disabling macros in general.



            (using this technique may cause your worksheet to become sluggish.)







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited May 1 '16 at 14:21

























            answered May 1 '16 at 14:15









            Gary's StudentGary's Student

            13.4k31729




            13.4k31729













            • Thanks. I was hoping for a solution without using code.

              – alnafie
              May 2 '16 at 7:47



















            • Thanks. I was hoping for a solution without using code.

              – alnafie
              May 2 '16 at 7:47

















            Thanks. I was hoping for a solution without using code.

            – alnafie
            May 2 '16 at 7:47





            Thanks. I was hoping for a solution without using code.

            – alnafie
            May 2 '16 at 7:47













            0














            You could try conditional formatting:



            Select entire sheet.



            Conditional Formatting
            -> Add New Rule
            -> Use a formula to determine which cells to format



            Enter formula:



            =IF(COLUMN(A1)=1,TRUE,FALSE)


            or just



            =COLUMN(A1)=1


            (both the same result - just depends which syntax you feel more comfortable with)



            This will check for each cell (you put A1 in because you put it in for the top-left cell of the selection, so A1 because you selected everything - it'll work itself out for the rest of the sheet accordingly)...
            ...whether its column number is 1 - which will only be the case for column A.



            Then pick the formatting you want and click OK, and you're done.






            share|improve this answer




























              0














              You could try conditional formatting:



              Select entire sheet.



              Conditional Formatting
              -> Add New Rule
              -> Use a formula to determine which cells to format



              Enter formula:



              =IF(COLUMN(A1)=1,TRUE,FALSE)


              or just



              =COLUMN(A1)=1


              (both the same result - just depends which syntax you feel more comfortable with)



              This will check for each cell (you put A1 in because you put it in for the top-left cell of the selection, so A1 because you selected everything - it'll work itself out for the rest of the sheet accordingly)...
              ...whether its column number is 1 - which will only be the case for column A.



              Then pick the formatting you want and click OK, and you're done.






              share|improve this answer


























                0












                0








                0







                You could try conditional formatting:



                Select entire sheet.



                Conditional Formatting
                -> Add New Rule
                -> Use a formula to determine which cells to format



                Enter formula:



                =IF(COLUMN(A1)=1,TRUE,FALSE)


                or just



                =COLUMN(A1)=1


                (both the same result - just depends which syntax you feel more comfortable with)



                This will check for each cell (you put A1 in because you put it in for the top-left cell of the selection, so A1 because you selected everything - it'll work itself out for the rest of the sheet accordingly)...
                ...whether its column number is 1 - which will only be the case for column A.



                Then pick the formatting you want and click OK, and you're done.






                share|improve this answer













                You could try conditional formatting:



                Select entire sheet.



                Conditional Formatting
                -> Add New Rule
                -> Use a formula to determine which cells to format



                Enter formula:



                =IF(COLUMN(A1)=1,TRUE,FALSE)


                or just



                =COLUMN(A1)=1


                (both the same result - just depends which syntax you feel more comfortable with)



                This will check for each cell (you put A1 in because you put it in for the top-left cell of the selection, so A1 because you selected everything - it'll work itself out for the rest of the sheet accordingly)...
                ...whether its column number is 1 - which will only be the case for column A.



                Then pick the formatting you want and click OK, and you're done.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered May 3 '16 at 2:05









                psymannpsymann

                84




                84






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Super User!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1071822%2fhow-to-permanently-color-a-column-in-excel%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    How to make a Squid Proxy server?

                    第一次世界大戦

                    Touch on Surface Book