Improving conditional Formatting with Macros

SPACKlick

New Member
Joined
Apr 27, 2011
Messages
28
Hi there, I have a relatively simple project (I have effectively been asked to turn an MS Excel spreadsheet into an MS Project one because...:confused:)

sheet 1 named "Schedule" will have various bits of data in
In sheet2 named "Graphical" I have the following

B1:BMP1, Merged cells showing Month and Year (mm-yy) I have had to merge these cells manually and any way of doing it automatically so you can just input a start date would be appreciated but is not necessary)
B2:BMP2, Dates, stored as values rather than formulae at the moment but that can be altered. (currently from 1st Aug 2011 to 31st March 2016)
A2: A title of the units of the project (Currently Units) from Cell A1 of Schedule.
A3:A502 currently numbers 1-500 representing the units of the project but could in the future be titles, from cell A2:A501 of Schedule.

What I am loooking to do is use conditional formatting to put;

thin vertical lines between all Sunday's and Mondays (Conditional formatting =WEEKDAY(B$2,3)=6 thin line right)
Medium thickness lines between months (=MONTH(B$2)<>MONTH(C$2) currently red line right)
Thick lines between March and April for financial year (=AND(MONTH(B$2)=3, DAY(B$2)=31)=TRUE() currently blue line right)

I know conditional formatting cannot do line thicknesses and when I tried to use macros ALL my lines went full thickness. Any thoughts would be appreciated.

Just for note in case it changes the tactic. This sheet is intended to have B3:BMP502 a nested if formula from Schedule to identify cells which fall between certain dates at certain stages ie. Order, Purchase, apply, maintenance etc. etc.
These cells will then be conditionally formatted to specific colours to identify each stage of the process, for each unit, by date.
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Just a quick bump and adding.

I am on Excel Pro Plus 2010, 32-bit, Version 14.0.4760.1000
I am using Windows 7 Pro, 64 bit, SP1
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

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