Conditional Formatting

dualhcsniatpac

Board Regular
Joined
Feb 18, 2009
Messages
126
I need some help in vba coding.

What I am shooting for is that if the date is a saturday or sunday it turns the text red. I am submitting info on a form to another file. I figured there are 2 ways. To all at once format the whole row (Which will be dates: 03/17/2009) or to format the data at the time of insertion. I do not know which one would be faster to process.

What I have for the row editing so far is Columns("A:A,W:W").???????

Sorry if I left any needed info out.

Thanks,
David
 
Last edited:

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
I appreciate the reply but I am not working with the actual sheet. I am using VBA. The weekday function looks like something that I should use. I will try to work with that. Still looking for guidance though!
 
Upvote 0
The way my program is set up is I have 1 excel file that has a form only. The info is dumped into a file that is created based on date (Along with the sheets too, which are created for every month of the year). By doing this, I need to use VBA.

Ex. Jan 1 a new file is created for 2009 with 1 sheet named January. Feb 1, a new sheet is created (by vba) named February, and so on. This is done because this tool will not get utilized if it is user dependent to create files so they need to be created automatically.

Not sure if I explained that well.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,405
Messages
6,119,320
Members
448,887
Latest member
AirOliver

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