Color only first three columns in excel

Halley yenn

New Member
Joined
Mar 17, 2021
Messages
32
Office Version
  1. 365
Platform
  1. Windows
Hello,

I have an excel sheet with 20k rows and 15 columns, my task is to color first three columns of this excel.
The color coding should be "Light orange" for column A and "light Green" for Column B and Column C.
I tried some vba code which is taking a lot of time to accomplish the task, can someone please guide me to do it in a quicker way using macro code??

KR
Halley
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Why do you need VBA?
You should just be able to select column A, and then choose the color that you want.
And then select columns B and C and choose the color that you want for them.

Is there something more to this that you are not telling us?
 
Upvote 0
Why do you need VBA?
You should just be able to select column A, and then choose the color that you want.
And then select columns B and C and choose the color that you want for them.

Is there something more to this that you are not telling us?
Hey,

Yes I need macro code for this.

Thanks
 
Upvote 0
If you turn on your Macro Recorder, and record yourself performing the steps I outlined in my previous post manually, you will have the exact VBA code that you need to do this (the Macro Recorder is a great tool for getting snippets of code like this).

If you need to make any "adjustments" to the code for any reason, post the code that you have recorded, along with an explanation of what adjustments need to be made.
 
Upvote 0
Solution

Forum statistics

Threads
1,214,822
Messages
6,121,770
Members
449,049
Latest member
greyangel23

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top