Continuation of a macro

D

Dan Wood

My macro runs to check a spreadhseet for certain values and produce an email.
This works fine, but for example if 4 passwords are due to expire the email
will be produced 4 times for each system.

Is there a line i need to insert to say continue onto the next cell instead
of starting over?
 
D

Dan Wood

This is my current code:-

Sub CheckDay()
Application.OnTime TimeValue("14:59:00"), "CheckDay"
For Each c In Range("D7:D30")
If c.value = 0 Then
Call SendEmail
End If
Next
End Sub


I dont really understand the example. Im not good with Macros.
 

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

Top