#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 133
Default Add

I need to loop thru a range of cells and evaluate
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Add

Please adjust the range...and set your evaluation code. If you are new to VBE
launch VBE using Alt+F11. Insert Module. and paste the below code....Use Step
Into (function key F8) and see what happens...

Sub LoopthroughRange()
Set rngTemp = Sheets("Sheet1").Range("A1:A10")
For Each rngCell In rngTemp
If rngCell.Text = "<condition" Then
'your code to evaluate
End If
Next
End Sub

--
If this post helps click Yes
---------------
Jacob Skaria


"LuisE" wrote:

I need to loop thru a range of cells and evaluate

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 01:31 PM.

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"