J
jamesftoland
Hello,
I have a macro that generates table information form Word into an excel
sheet, and I'd like it if the cells columns would text wrap the data in
the cells, as well as display the regular "medium" black Excel
gridlines....not sure where to introduce this code, as .Columns or
..Rows? Anyway, here is what I have that needs to be tweaked...Thanks
again all, I'm learning....
Next
.Columns("A:A").EntireColumn.AutoFit
.Columns("A:A").WrapText = True
.Columns("B:B").EntireColumn.AutoFit
.Columns("B:B").WrapText = True
.Columns("C:C").EntireColumn.AutoFit
.Columns("C:C").WrapText = True
Cell.Borders (xlEdgeLeft)
Border.LineStyle = xlContinuous
Border.Weight = xlThin
Border.ColorIndex = xlAutomatic
Cell.Borders (xlEdgeTop)
Border.LineStyle = xlContinuous
Border.Weight = xlThin
Border.ColorIndex = xlAutomatic
Cell.Borders (xlEdgeBottom)
Border.LineStyle = xlContinuous
Border.Weight = xlThin
Border.ColorIndex = xlAutomatic
Cell.Borders (xlEdgeRight)
Border.LineStyle = xlContinuous
Border.Weight = xlThin
Border.ColorIndex = xlAutomatic
Cell.Borders (xlInsideVertical)
Border.LineStyle = xlContinuous
Border.Weight = xlThin
Border.ColorIndex = xlAutomatic
Cell.Borders (xlInsideHorizontal)
Border.LineStyle = xlContinuous
Border.Weight = xlThin
Border.ColorIndex = xlAutomatic
End With
I have a macro that generates table information form Word into an excel
sheet, and I'd like it if the cells columns would text wrap the data in
the cells, as well as display the regular "medium" black Excel
gridlines....not sure where to introduce this code, as .Columns or
..Rows? Anyway, here is what I have that needs to be tweaked...Thanks
again all, I'm learning....
Next
.Columns("A:A").EntireColumn.AutoFit
.Columns("A:A").WrapText = True
.Columns("B:B").EntireColumn.AutoFit
.Columns("B:B").WrapText = True
.Columns("C:C").EntireColumn.AutoFit
.Columns("C:C").WrapText = True
Cell.Borders (xlEdgeLeft)
Border.LineStyle = xlContinuous
Border.Weight = xlThin
Border.ColorIndex = xlAutomatic
Cell.Borders (xlEdgeTop)
Border.LineStyle = xlContinuous
Border.Weight = xlThin
Border.ColorIndex = xlAutomatic
Cell.Borders (xlEdgeBottom)
Border.LineStyle = xlContinuous
Border.Weight = xlThin
Border.ColorIndex = xlAutomatic
Cell.Borders (xlEdgeRight)
Border.LineStyle = xlContinuous
Border.Weight = xlThin
Border.ColorIndex = xlAutomatic
Cell.Borders (xlInsideVertical)
Border.LineStyle = xlContinuous
Border.Weight = xlThin
Border.ColorIndex = xlAutomatic
Cell.Borders (xlInsideHorizontal)
Border.LineStyle = xlContinuous
Border.Weight = xlThin
Border.ColorIndex = xlAutomatic
End With