Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default If - Then synthax


Dim cell As Range
For *Each cell In Range("B:B")*(...)
Next


I need to modify this call so the cycle goes from B10 to the last ro
containing info.

Any ideas

--
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: 5,302
Default If - Then synthax

Hi Turquiise_dax,

See Debra Dalgeish's suggestions for resetting the used range at:

http://www.contextures.com/xlfaqApp.html#Unused


---
Regards,
Norman


"Turquoise_dax"
wrote in message
news:Turquoise_dax.29tdfn_1150997103.7202@excelfor um-nospam.com...

Dim cell As Range
For *Each cell In Range("B:B")*(...)
Next


I need to modify this call so the cycle goes from B10 to the last row
containing info.

Any ideas?


--
Turquoise_dax
------------------------------------------------------------------------
Turquoise_dax's Profile:
http://www.excelforum.com/member.php...o&userid=35185
View this thread: http://www.excelforum.com/showthread...hreadid=554668



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default If - Then synthax

Hi Turquoise_Dax,

Please ignore my reponse - it was intended as a reply to another post!


---
Regards,
Norman


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default If - Then synthax

On Thu, 22 Jun 2006 12:20:26 -0500, Turquoise_dax wrote:

Dim cell As Range
For *Each cell In Range("B:B")*(...)
Next


I need to modify this call so the cycle goes from B10 to the last row
containing info.


dim rng as excel.range
set rng=range("b10")
do while rng.value<""
' put your code here...
' use rng.<some property to access the current cell
set rng=rng.offset(1,0)
loop

--
PL
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



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