Gnatt Chart with Countif & ????

GraphWS

New Member
Joined
Aug 22, 2019
Messages
5
Column A is 5 digit Order Number
Column B is Customer name
Columns C thru O are X’s or 0 depending on which stage Order is in.
Using VBA to set conditional formatting for C thru O columns

Code:
With ThisWorkbook.Worksheets(1).Range("C3:O3")
     .FormatConditions.Delete
     .FormatConditions.Add Type:=xlExpression, Formula1:="=COUNTIF($C3:C$3,C3)=1"
     .FormatConditions(1).Interior.ColorIndex = 3
     .FormatConditions(1).Font.ColorIndex = 3
End With

Using another Rule cell value contains “x” then they have white fill & white copy.
Leaves me with a Red box in whatever stage that order is in.

What I would like to do is have the VBA copy the 5 digit number from A column into which ever cell in row is red/red except of course with whit copy.
BTW the 5 digit number in Column A is also a hyperlink to other excel files.

Any Help??? Thanks
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

Forum statistics

Threads
1,223,884
Messages
6,175,174
Members
452,615
Latest member
bogeys2birdies

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