Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello from Steved
I've got a problem and that is when I insert a Row My ranges Set myRng = Me.Range("A10:A10") will not change ie to Set myRng = Me.Range("A11:A11"), Is their something I can do as now I've got to go and change every range by 1. I would like to avoid this in other wordswhen I insert a row the range will change . Thankyou. Private Sub CommandButton1_Click() Dim myRng As Range Set myRng = Me.Range("A10:A10") myRng.EntireRow.Hidden = Not (myRng(1).EntireRow.Hidden) End Sub Private Sub CommandButton10_Click() Dim myRng As Range Set myRng = Me.Range("A63:A64") myRng.EntireRow.Hidden = Not (myRng(1).EntireRow.Hidden) End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
inserting rows inbetween rows of data ? | Excel Discussion (Misc queries) | |||
Copying & Inserting Rows w/o Affecting other Rows Etc. | Excel Worksheet Functions | |||
Inserting Blank rows after every row upto 2500 rows | Excel Worksheet Functions | |||
Inserting multiple rows in excel with data in consecutive rows | Excel Programming | |||
Locking Inserting of Rows at certain rows? | Excel Programming |