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: 519
Default 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
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
Inserting and Deleting Rows in Excel ttonkel Excel Worksheet Functions 2 March 7th 09 03:06 PM
CF goes crazy when deleting/inserting rows DoubleZ Excel Discussion (Misc queries) 1 October 2nd 08 09:33 PM
Inserting/deleting rows between worksheets Klee Excel Worksheet Functions 4 July 22nd 07 07:41 PM
inserting deleting rows?how do i get the other sheets to do the sa cunningham82 Excel Discussion (Misc queries) 0 December 27th 06 09:51 PM
Excel links & inserting/deleting rows jd Excel Discussion (Misc queries) 2 February 4th 06 08:22 PM


All times are GMT +1. The time now is 12:52 AM.

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

About Us

"It's about Microsoft Excel"