In the cell range of conditionalformat, Format.Conditional.Manage.Edit, I can give different ranges by hand, example “A1:D1,A2:E2,A3:H3”
When I use the folowing code all the rules are separated over more lines:
sRngs = "A1:D1,A2:E2,A3:H3"
vRngs = split(sRngs, ",")
for iI = lbound(vRngs()) to ubound(vRngs())
oRng.getCellRangeByName(vRngs(iI)).ConditionalFormat = oNewCCF 'each on a separated line
next
How to change the code so that all ranges are on one cell range line only?
I tryed it with:
oRng.getCellRangeByName(sRngs).ConditionalFormat = oNewCCF 'All on one line
But thats not the solution.
Who can/will point me in the rigth direction?
Regards.
Rammy