![]() |
Clearing a diagonal line in a cell
I'm using an Excel worksheet to demonstrate subtraction (with "borrows") to my Maths students. I have a button which crosses out a digit (in a cell), ready to reduce the digit by 1
I can't code the worksheet to clear the "diagonal cell line", ready for the next example Sounds complicated! but I would appreciate some assistance thank Bill |
Clearing a diagonal line in a cell
Perhaps:
With Selection .Borders(xlDiagonalDown).LineStyle = xlNone .Borders(xlDiagonalUp).LineStyle = xlNone End With -- Jim Rech Excel MVP "Bill" wrote in message ... | I'm using an Excel worksheet to demonstrate subtraction (with "borrows") to my Maths students. I have a button which crosses out a digit (in a cell), ready to reduce the digit by 1. | I can't code the worksheet to clear the "diagonal cell line", ready for the next example. | Sounds complicated! but I would appreciate some assistance. | thanks | Bill |
Clearing a diagonal line in a cell
thanks Jim, will try
Bill ----- Jim Rech wrote: ----- Perhaps: With Selection .Borders(xlDiagonalDown).LineStyle = xlNone .Borders(xlDiagonalUp).LineStyle = xlNone End With -- Jim Rech Excel MVP "Bill" wrote in message ... | I'm using an Excel worksheet to demonstrate subtraction (with "borrows") to my Maths students. I have a button which crosses out a digit (in a cell), ready to reduce the digit by 1. | I can't code the worksheet to clear the "diagonal cell line", ready for the next example. | Sounds complicated! but I would appreciate some assistance. | thanks | Bill |
All times are GMT +1. The time now is 12:50 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com