Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Quick question..:P (Row range)


Dim cell As Range
For Each cell In Range("B:B")
If Len(cell.Value) = 0 Then cell.Offset(0, 1).Interior.Pattern
xlPatternGray8
Next


How can I set this code so Excel doesn't apply this setting up to th
65 000th line? (max

--
Turquoise_da
-----------------------------------------------------------------------
Turquoise_dax's Profile: http://www.excelforum.com/member.php...fo&userid=3518
View this thread: http://www.excelforum.com/showthread.php?threadid=55466

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Quick question..:P (Row range)


If you don't want to apply the format beyond row 65000, I think this
should work for you.

Sub test()
Dim cell As Range
For Each cell In Range("B1:B65000")
If Len(cell.Value) = 0 Then cell.Offset(0, 1).Interior.Pattern =
xlPatternGray8
Next
End Sub


--
darpan_mirror
------------------------------------------------------------------------
darpan_mirror's Profile: http://www.excelforum.com/member.php...o&userid=35593
View this thread: http://www.excelforum.com/showthread...hreadid=554663

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
Quick Question Dave Excel Discussion (Misc queries) 3 February 18th 09 06:00 PM
Quick question... NPell Excel Worksheet Functions 3 February 13th 09 03:37 PM
Another Quick Question Heather Excel Programming 3 May 2nd 06 08:29 PM
Quick question - quick answer about assigning shortcut keys funkymonkUK[_75_] Excel Programming 1 October 13th 05 10:50 AM
Very Quick Question Chuckles123[_69_] Excel Programming 1 November 18th 04 05:49 PM


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