Maybe this will help.
Sub cellstoright()
Set mr = ActiveCell.Resize(1, 10)
For Each c In mr
'If c <> "" Then MsgBox c.Address
If c <> "" Then c.value=c*10
Next c
End Sub
--
Don Guillett
SalesAid Software
(E-Mail Removed)
"BorisS" <(E-Mail Removed)> wrote in message
news:54738677-5BAE-47BF-8B28-(E-Mail Removed)...
>I need some code to do the following:
>
> 1) start with a given cell
> 2) count how many of the 10 cells to the right of it are filled with data
> 3) for each of those cells, perform a small procedure
>
> My hangup right now is how to get the loop structured, as I always screw
> up
> the definitions of variables, as well as how to use them in code. So if
> anyone can give me the first part of this, I can fill in the procedure
> inbetween the loop beginning and ending arguments.
>
> Thx.
> --
> Boris