VBA script

  • Thread starter Thread starter Gor_yee
  • Start date Start date
G

Gor_yee

I need a script really bad, here is what i need :

In Column D I have week numbers ranging from 532 to 543, and then in
column F, i have sales for an item. In column H, i have a forumla : if
(D=IF(D11=541,AVERAGE(F2:F10), " "), how to i create a script to keep
on looping until the end of the file?PLease help!!!Thanks alot
 
Looping to do what?

The loop is simple

For i = 1 To Range("D1").End(XlDown).Row

'do something with Cells(i, "D").Value
Next i
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top