Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 173
Default Run repetitive task and frequency depends

Dear Expert,
I need to run a similar task which find/update the data in sheets "Daily",
"Weekly",...
But number of "Check" is different days by days ...
Sometimes, it has 3, sometimes 4 and even none ....
So how can I do a repetitive task based on the number of check in a column
please ?
In this case, it has 4 check in a column ... then do that task for 4 times
is enough and stop ! Thanks for help.

Expiry In Sheets
LC115534 17-Feb-09 Daily Check 12.1
TR115776 17-Feb-09 Daily 11.2
GB116981 18-Feb-09 Daily Check 62.9
EQ117150 #N/A Daily 21.1
SS118845 18-Feb-09 Daily 117.4
AQ119605 18-Feb-09 Daily 24
TR120182 19-Feb-09 Daily 27
GB120268 17-Feb-09 Monthly Check 99
TR120513 19-Feb-09 Daily 24
GB120941 38
GB123547 19-Feb-09 Daily 24
GB125186 27-Feb-09 Weekly Check 37
EQ129944 #N/A Daily 84
SS130341 27-Feb-09 Monthly 67
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Run repetitive task and frequency depends

Dim lngRow As Long
For lngRow = 1 To ActiveSheet.Cells(Rows.Count, "D").End(xlUp).Row
If Range("D" & lngRow) = "Check" Then
'Do something
End If
Next

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


"Elton Law" wrote:

Dear Expert,
I need to run a similar task which find/update the data in sheets "Daily",
"Weekly",...
But number of "Check" is different days by days ...
Sometimes, it has 3, sometimes 4 and even none ....
So how can I do a repetitive task based on the number of check in a column
please ?
In this case, it has 4 check in a column ... then do that task for 4 times
is enough and stop ! Thanks for help.

Expiry In Sheets
LC115534 17-Feb-09 Daily Check 12.1
TR115776 17-Feb-09 Daily 11.2
GB116981 18-Feb-09 Daily Check 62.9
EQ117150 #N/A Daily 21.1
SS118845 18-Feb-09 Daily 117.4
AQ119605 18-Feb-09 Daily 24
TR120182 19-Feb-09 Daily 27
GB120268 17-Feb-09 Monthly Check 99
TR120513 19-Feb-09 Daily 24
GB120941 38
GB123547 19-Feb-09 Daily 24
GB125186 27-Feb-09 Weekly Check 37
EQ129944 #N/A Daily 84
SS130341 27-Feb-09 Monthly 67

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Run repetitive task and frequency depends

For the below code I am assuming you have this "Check" in Col D

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


"Jacob Skaria" wrote:

Dim lngRow As Long
For lngRow = 1 To ActiveSheet.Cells(Rows.Count, "D").End(xlUp).Row
If Range("D" & lngRow) = "Check" Then
'Do something
End If
Next

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


"Elton Law" wrote:

Dear Expert,
I need to run a similar task which find/update the data in sheets "Daily",
"Weekly",...
But number of "Check" is different days by days ...
Sometimes, it has 3, sometimes 4 and even none ....
So how can I do a repetitive task based on the number of check in a column
please ?
In this case, it has 4 check in a column ... then do that task for 4 times
is enough and stop ! Thanks for help.

Expiry In Sheets
LC115534 17-Feb-09 Daily Check 12.1
TR115776 17-Feb-09 Daily 11.2
GB116981 18-Feb-09 Daily Check 62.9
EQ117150 #N/A Daily 21.1
SS118845 18-Feb-09 Daily 117.4
AQ119605 18-Feb-09 Daily 24
TR120182 19-Feb-09 Daily 27
GB120268 17-Feb-09 Monthly Check 99
TR120513 19-Feb-09 Daily 24
GB120941 38
GB123547 19-Feb-09 Daily 24
GB125186 27-Feb-09 Weekly Check 37
EQ129944 #N/A Daily 84
SS130341 27-Feb-09 Monthly 67

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
histograms - frequency and relative frequency? confusedstudent Excel Discussion (Misc queries) 2 February 8th 06 08:20 AM
dialog box for active cell task to speed repeditive task Todd F.[_2_] Excel Programming 3 August 9th 05 02:30 PM
Need a simple VBA code to automate a repetitive task. madhu Excel Programming 2 January 21st 05 10:55 AM
Help with very repetitive task in excel...is there an answer? Tim Smith[_2_] Excel Programming 4 July 27th 04 12:48 PM
Repetitive task macro twaccess[_17_] Excel Programming 7 July 22nd 04 08:47 AM


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