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: 1
Default Defining a range and use it's value




i use the following code:


Code:
--------------------
Sub CleanSheetHideRows()
Dim nCol As Integer
Dim J As Integer
Dim i As Integer

Application.ScreenUpdating = False
With ActiveSheet
.Range("B4").Select
nCol = 2
For J = 4 To 6000
If .Cells(J, nCol).Value = 0 Then
.Cells(J, nCol).Select
Selection.EntireRow.Hidden = True
End If
Next J
For i = 4 To 6000
If .Cells(i, nCol).Value = "ALL WEEKS" Then
.Cells(i, nCol).Select
Selection.EntireRow.Font.Bold = True
End If
Next i
End With
Application.ScreenUpdating = True
End Sub
--------------------


But i need toahev the RANGE of that row not just one column to be
looked at for 0 value...

Any suggestions please? :)


--
Petitboeuf
------------------------------------------------------------------------
Petitboeuf's Profile: http://www.excelforum.com/member.php...o&userid=10602
View this thread: http://www.excelforum.com/showthread...hreadid=493817

 
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
Defining Range Name anshu[_2_] Excel Discussion (Misc queries) 2 July 22nd 07 07:30 AM
Help with defining a Range drhalter Excel Programming 2 August 11th 05 11:56 PM
Defining a range Don Excel Worksheet Functions 1 February 25th 05 03:54 PM
Defining a Range Ric[_5_] Excel Programming 4 April 26th 04 07:34 PM
Defining a range Matt Excel Programming 3 January 23rd 04 03:21 PM


All times are GMT +1. The time now is 02:31 PM.

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"