Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Inserting or Deleting Rows
Hello from Steved
When I insert or delete Rows I have to go and Change Set myRng = Me.Range("A40:A42") ie "A39:A41" ( I have over 500 off them ) Is it possibel to modify the below so that If I insert or delete I don't have to change the bottom. Thankyou. Private Sub CommandButton6_Click() Dim myRng As Range Set myRng = Me.Range("A40:A42") myRng.EntireRow.Hidden = Not (myRng(1).EntireRow.Hidden) End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Inserting and Deleting Rows in Excel | Excel Worksheet Functions | |||
CF goes crazy when deleting/inserting rows | Excel Discussion (Misc queries) | |||
Inserting/deleting rows between worksheets | Excel Worksheet Functions | |||
inserting deleting rows?how do i get the other sheets to do the sa | Excel Discussion (Misc queries) | |||
Excel links & inserting/deleting rows | Excel Discussion (Misc queries) |