S
Sandra
Hello,
I'm writing a macro to write schedule data to Excel. All the data I need is
coming over great! The problem is when I try to format Excel from inside
MSProject 2000. The first time it runs it runs great! The 2nd time it runs
I get the error "Method 'Range' of object '_Global' Failed. I'm not doing
anything fancy or special...just putting borders to divide the data as
written below. The 2nd time through it HATEs my "Range" statement. Can
anyone help?
Range("A6:I12").Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.Weight = xlMedium
.ColorIndex = xlAutomatic
End With
Thanks!
I'm writing a macro to write schedule data to Excel. All the data I need is
coming over great! The problem is when I try to format Excel from inside
MSProject 2000. The first time it runs it runs great! The 2nd time it runs
I get the error "Method 'Range' of object '_Global' Failed. I'm not doing
anything fancy or special...just putting borders to divide the data as
written below. The 2nd time through it HATEs my "Range" statement. Can
anyone help?
Range("A6:I12").Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.Weight = xlMedium
.ColorIndex = xlAutomatic
End With
Thanks!