LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 45
Default help required in completing the code

in this code , i have sorted and merged cells . Now i have to ck if there is
only 9 hours allocated per day per individual.. if 9 hours is already planned
during a day for an individual tehn teh distributin of work has to happen
from teh next day... how do i proceed.. ina week only 5 days are there on
sheet.


'DISTRIBUTION OF ESTIMATE

Dim estimate As Integer
estimate = Cells(j, 12).value - Cells(j, 13).value

' a= the given planned st date from WAS
'b= friday date

Dim a As Date
Dim b As Date
Dim k As Variant
Dim co As Integer

Cells(j, 7).Select
a = Range("H" & j).value
b = Sheets("FTP").Cells(1, 10).value
k = DateDiff("d", a, b)
co = 5 - k

While estimate 9 And co <= 10

Sheets("FTP").Cells(I, co + 6).value = 9
estimate = estimate - 9
co = co + 1
Wend
If estimate <= 9 Then
Sheets("FTP").Cells(I, co + 6) = estimate
End If

'END OF DISTRIBUTION

I = I + 1
End If
j = j + 1






Wend

 
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
Completing a Chart Mung Q Charts and Charting in Excel 2 May 22nd 07 05:48 PM
Completing Formula in Vba Micos3 Excel Discussion (Misc queries) 3 April 9th 07 07:46 AM
Code required for VLookup returning #NA Marie Bayes Excel Discussion (Misc queries) 7 January 10th 07 04:01 PM
Need some help completing this Formula brigsaz Excel Worksheet Functions 1 September 23rd 05 04:34 AM
Auto Complete not completing faerie_bel Excel Discussion (Misc queries) 5 June 10th 05 01:15 PM


All times are GMT +1. The time now is 11:07 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"