#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Hide range

Without looking too close the first issue is that end row is declared as
integer. Integer only goes to 32k. Change it to a long...

Dim EndRw As long
--
HTH...

Jim Thomlinson


"David" wrote:

Hi
Can anybody please tell me what am I doing wrong here
Trying to hide certain rows
Sub aa()
Dim Rw As Integer
Dim EndRw As Integer
Rw = 100
EndRw = 65536
Rows(Rw & ":" & EndRw).Hidden = True
End Sub

Regards

Reply
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
Hide Range of Cells [email protected] Excel Programming 1 February 10th 06 08:30 PM
Hide all rows within a range except one? mevetts Excel Discussion (Misc queries) 2 December 23rd 05 09:27 PM
How to hide a Range of Columns? scrap08[_2_] Excel Programming 0 June 29th 04 12:51 PM
How to hide a Range of Columns? scrap08 Excel Programming 0 June 29th 04 12:50 PM
How to hide row range from code? Majstor Excel Programming 8 November 4th 03 03:50 PM


All times are GMT +1. The time now is 03:22 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"