Professional Documents
Culture Documents
Global
Global
Global
Global
PRJ_ID As Dictionary
ENG_ID As Dictionary
LstPRJ As Range
LstPRJ_EAPS As Range
LstENG As Range
CdDate As Date
dd As Integer
ENGDT As Dictionary
ENGDT = New Dictionary
'''''''''''''''''''''''''''''
Ranges Created
''''''''''''''''''''''''''''''''''''''''''''
''''''''''
''''''''''''
If dd = 6 Then
Range(Cells(2, 3), Cells(2, 20)).EntireColumn.Delete
End If
End Sub
Sub Date_Range()
Dim
Dim
Dim
Dim
Dim
Dim
Set
Dim
Set
Dim
Set
CrDate As Date
EnDate As Date
LsEngCnt As Integer
NonEmptyRow As Integer
dd As Integer
PRJDict As Dictionary
PRJDict = New Dictionary
FN As Dictionary
FN = New Dictionary
DT As Dictionary
DT = New Dictionary
'''''''''''''''''''''''''''''
''''''''''''''''''
Creating Ranges
''''''''''
'''''''''''''''''''''''''''''
Creating PRJ Dictionaries with Mapping I
D Ranges
''''''''''''''''''''''''''''
'''''''''''''''''''''''''''''
PRJ Dictionaries with Mapping ID Ranges
Created
''''''''''''''''''''''''''''
'''''''''''''''''''''''''''''
Creating ENG Dictionaries with Mapping I
D Ranges
''''''''''''''''''''''''''''
'''''''''''''''''''''''''''''
Creating ENG Dictionaries with Mapping I
D Ranges
''''''''''''''''''''''''''''
Dim LstEMP_ID As Range
Sheets("MainSh").Activate
Set LstEMP_ID = Sheets("MainSh").Range(Cells(5, 5), Cells(Cells(Rows.Count, 5).E
nd(xlUp).Row, 5))
Dim LstEMP_MPID As Range
Sheets("MainSh").Activate
Set LstEMP_MPID = Sheets("MainSh").Range(Cells(5, 6), Cells(Cells(Rows.Count, 6)
.End(xlUp).Row, 6))
'''''''''''''''''''''''''''''
''''''''''''''''''
Ranges Created
''''''''''
'''''''
''''''''''
For i = 0 To 6
Range(Cells(k, 2), Cells(l, 2)).Select
Selection.Merge
Selection.Value = CrDate + i
Selection.HorizontalAlignment = xlCenter
Selection.VerticalAlignment = xlCenter
Selection.Borders.LineStyle = xlContinuous
j = k
For Each kys In ENG_ID.Keys
Cells(j, 3).Borders.LineStyle = xlContinuous
Cells(j, 3).Value = kys
j = j + 1
Next
NonEmptyRow = Cells(Rows.Count, 2).End(xlUp).Row + 1
k = NonEmptyRow + LsEngCnt - 1
l = k + LsEngCnt - 1
Next i
End If
If dd = 6 Then
k = 5
l = k + LsEngCnt - 1
For i = 1 To 7
Range(Cells(k, 2), Cells(l, 2)).Select
Selection.EntireRow.Delete
'''''''''''''''''''''''''''''''''''''Here You Enter the Requirement on Wedne
sday''''''''''''''
k = 5
l = k + LsEngCnt - 1
Next i
End If
'''''''''''''''''''''''''''''''' Date List in Entry Sheet Updated ''''''''''''
''''''''''''
'''''''''''''''''''
Updating the New Engineer if Included in the recent DATE
List Ranges
'''''''''''''''''
s = Cells(Rows.Count, 2).End(xlUp).Row
Range(Cells(5, 2), Cells(Cells(s, 2))).Select
Set LsDTRngs = Range(Cells(5, 2), Cells(Cells(Rows.Count, 2).End(xlUp).Row, 2))
'''''''''''''''''''
New Engineer if Included in the recent DATE List Ranges i
s Updated
'''''''''''''''''''
End Sub