Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default VBA loop cells

Goodmorning group,

Can someone help me with this one.
I'm looking for VBA code to do the following.
From 3 fixed cells (P50, P71 and P93) I want to select the
first, follow procedure and than loop for the next cell
and repeat the procedure.

Thanks in advance.

greetz,
@3
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 101
Default VBA loop cells

Sub DoThings()
Dim oCell As Range

For Each oCell In Range("B5,B7,B9")
oCell.Font.Color = vbRed
Next oCell

End Sub



Chrissy.


Adrie Rahanra wrote
Goodmorning group,

Can someone help me with this one.
I'm looking for VBA code to do the following.
From 3 fixed cells (P50, P71 and P93) I want to select the
first, follow procedure and than loop for the next cell
and repeat the procedure.

Thanks in advance.

greetz,
@3



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
compare cells, copy, loop Immortal_Creations Excel Worksheet Functions 2 July 17th 09 03:34 PM
Find loop doesn't loop JSnow Excel Discussion (Misc queries) 2 June 24th 09 08:28 PM
How do I loop a range of cells until I get a numeric value? ManKind New Users to Excel 1 June 4th 06 06:48 AM
Loop JohnUK Excel Discussion (Misc queries) 1 February 22nd 05 02:50 PM
How to loop through cells in macro Andrew[_21_] Excel Programming 1 September 8th 03 08:21 PM


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