I need Borders around data in a sheet that I populate. The columns are letters causing me to duplicate the code. Instead of Column E, G, I, it would be nice to use a For Next statment.
Any idea?
Any idea?
PHP:
strStartCell = "E" + CStr(intRowStart)
strCellRange = strStartCell + "..." + strEndColumn + CStr(intRowNum)
With XlSheet.Range(strCellRange).Borders(xlEdgeLeft)
.Weight = xlThick
End With
strStartCell = "G" + CStr(intRowStart)
strCellRange = strStartCell + "..." + strEndColumn + CStr(intRowNum)
With XlSheet.Range(strCellRange).Borders(xlEdgeLeft)
.Weight = xlThick
End With
strStartCell = "I" + CStr(intRowStart)
strCellRange = strStartCell + "..." + strEndColumn + CStr(intRowNum)
With XlSheet.Range(strCellRange).Borders(xlEdgeLeft)
.Weight = xlThick
End With