LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Removing Diagonal Lines on worksheet

This is the code I wrote:
Private Sub chkboxE4NA_Click()
unprotect the sheet first
ActiveSheet.Unprotect
'Draws a line accross both pages in Worksheet E4 and directs the user to E5
ActiveSheet.Shapes.AddLine(0#, 1.5, 543.75, 713.25).Select
Selection.ShapeRange.Line.Weight = 2.25
Selection.ShapeRange.Flip msoFlipHorizontal
ActiveSheet.Shapes.AddLine(546.75, 1.5, 1073.25, 714#).Select
Selection.ShapeRange.Line.Weight = 2.25
Selection.ShapeRange.Flip msoFlipHorizontal
€˜Check box on page two
chkE4NA1.Value = True
'Protect the sheet
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True
ActiveSheet.EnableSelection = xlUnlockedCells
€˜Move the user to Worksheet E5
Sheets("E5").Select

End Sub
________________________
Basically as the user goes down the workbook and finds out he does not need
to fill out worksheet E4, all he has to do is check the checkbox and this
crosses out page one and two and then directs the user to the next worksheet.

Two problems:
ONE: if the user decides after he checks the checkbox to go back and fill
out the worksheet, he has to manually delete the lines.
How can this be done with a simple unchecking of the checkbox?

TWO: if the user unchecks the checkbox, this action draws a new set of
diagonal lines overlaping the first ones.
If problem one can not be solved, how can the repetition of the diagonal
lines be avoided when the user unchecks the checkbox?


Thank you

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Removind diagonal lines created on sheet Memphis Excel Discussion (Misc queries) 6 April 24th 09 03:44 AM
Diagonal error lines in a scatter? [email protected] Charts and Charting in Excel 2 July 24th 08 12:10 AM
Need diagonal lines behind printed cells. Jimmy D[_2_] Excel Discussion (Misc queries) 2 June 26th 08 04:34 AM
How do I place diagonal lines in a cell in Excel. ezas1040 Excel Discussion (Misc queries) 3 February 25th 05 05:59 AM
Diagonal Lines on UserForms? James Cox[_2_] Excel Programming 2 October 28th 04 04:40 PM


All times are GMT +1. The time now is 10:29 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"