Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Here is version 2, improved to clear the matrix cells if the result is
NOT in the range (handy for changing dates) Sub Matrix() For Each c In Sheets("Sheet1").Range("Houses") For Each d In Sheets("Sheet1").Range("Dates") If c.Offset(0, 1) <= d Then If c.Offset(0, 2) = d Then d.Offset(c.Row - 2).Value = "X" End If Else d.Offset(c.Row - 2).Clear End If Next d Next c End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Making an excel sheet with VBA. | Excel Discussion (Misc queries) | |||
Material Require. Planning (MRP) & Capacity Require. Planning (CRP | Excel Programming | |||
Material Requirements Planning-MRP/Capacity Requirements Planning- | Excel Discussion (Misc queries) | |||
Set up Tax planning sheet by week/monrth- Income/deductions | Excel Worksheet Functions | |||
Making the Sheet a relative value? | Excel Worksheet Functions |