I have a range that outputs a list that requires some cells t be merged dependent on how may rows of products are assigned to a customer
Above is a example of what needs to happen and in order to merged & word wrap the rows each customer needs for the products ordered I use the following
Sometimes when the code to set the range for each of the CFs, Excel crashes.
This has happened where anything since the last save was lost and also it happened with the file being re-opened and repaired with no lost of data but essentially, this is an issue in case it happens when the process is deployed to my client.
Does anyone have a suggestion on a solution/work-around to avoid using this specific code?
TIA
Above is a example of what needs to happen and in order to merged & word wrap the rows each customer needs for the products ordered I use the following
VBA Code:
Sub ROCFRanges()
Dim wsRO As Worksheet
Dim fcAll As FormatConditions
Dim fcSingle As Object
Set wsRO = ActiveSheet
Set fcAll = wsRO.Cells.FormatConditions
For Each fcSingle In fcAll
fcSingle.ModifyAppliesToRange Range(Range("RO_CFArea").Address)
Next
Set fcSingle = Nothing
Set wsRO = Nothing
End Sub
This has happened where anything since the last save was lost and also it happened with the file being re-opened and repaired with no lost of data but essentially, this is an issue in case it happens when the process is deployed to my client.
Does anyone have a suggestion on a solution/work-around to avoid using this specific code?
TIA