国产97色在线 | 日韩,97se狠狠狠狠狼鲁亚洲综合色,成l人在线观看线路1,1313午夜精品理论片,成人免费看片又大又黄

用vba創(chuàng)建工程項(xiàng)目管理系統(tǒng)

用 VBA 創(chuàng)建工程項(xiàng)目管理系統(tǒng)

隨著計(jì)算機(jī)技術(shù)的不斷發(fā)展,人們?cè)絹?lái)越需要一種能夠方便管理工程項(xiàng)目的工具。因此,用 VBA 創(chuàng)建工程項(xiàng)目管理系統(tǒng)成為了一個(gè)越來(lái)越受歡迎的方向。本文將介紹如何使用 VBA 創(chuàng)建一個(gè)簡(jiǎn)單的工程項(xiàng)目管理系統(tǒng)。

## 項(xiàng)目管理系統(tǒng)概述

一個(gè)工程項(xiàng)目管理系統(tǒng)通常包括以下部分:

1. 項(xiàng)目列表:列出所有待開(kāi)發(fā)的項(xiàng)目。
2. 項(xiàng)目狀態(tài):顯示每個(gè)項(xiàng)目的狀態(tài),例如“待執(zhí)行”、“已執(zhí)行”、“已完成”等。
3. 任務(wù)列表:列出當(dāng)前正在執(zhí)行的任務(wù)。
4. 任務(wù)狀態(tài):顯示每個(gè)任務(wù)的狀態(tài),例如“待完成”、“已完成”、“正在執(zhí)行”等。
5. 任務(wù)執(zhí)行進(jìn)度:顯示任務(wù)執(zhí)行的進(jìn)度。
6. 任務(wù)完成進(jìn)度:顯示任務(wù)完成進(jìn)度。
7. 項(xiàng)目進(jìn)度:顯示整個(gè)項(xiàng)目進(jìn)度。
8. 數(shù)據(jù)庫(kù):存儲(chǔ)項(xiàng)目和任務(wù)數(shù)據(jù)。

## VBA 創(chuàng)建工程項(xiàng)目管理系統(tǒng)

下面是一個(gè)簡(jiǎn)單的 VBA 代碼示例,可以創(chuàng)建一個(gè)基本的工程項(xiàng)目管理系統(tǒng):

“`vb
Sub CreateProjectSystem()

Dim projectList As String
Dim projectStatus As String
Dim taskList As String
Dim taskStatus As String
Dim task的執(zhí)行進(jìn)度 As String
Dim task完成進(jìn)度 As String
Dim database As String
Dim i As Long
Dim j As Long
Dim k As Long
Dim l As Long
Dim m As Long
Dim n As Long
Dim o As Object
Dim p As Object
Dim q As Object
Dim r As Object
Dim s As Object
Dim t As Object
Dim u As Object
Dim v As Object
Dim w As Object
Dim x As Object
Dim y As Object
Dim z As Object

projectList = \”Project List\”
projectStatus = \”\”
taskList = \”Task List\”
taskStatus = \”\”
task完成進(jìn)度 = \”\”
taskList = \”Task List\”

For i = 1 To UBound(projectList)
For j = 1 To UBound(taskList)
If projectList(i) = taskList(j) Then
projectStatus = projectList(i) & \” – \” & taskList(j) & \” (\” & task完成進(jìn)度 & \”%)\”
End If
Next j
Next i

For i = 1 To UBound(projectList)
For j = 1 To UBound(taskList)
If projectList(i) = taskList(j) Then
If taskList(i) = \”待執(zhí)行\(zhòng)” Then
taskList(i) = \”\”
taskStatus = \”\”
task完成進(jìn)度 = \”\”
ElseIf taskList(i) = \”已執(zhí)行\(zhòng)” Then
taskList(i) = \”\”
taskStatus = \”\”
task完成進(jìn)度 = \”\”
Else
taskList(i) = \”\”
taskStatus = \”\”
task完成進(jìn)度 = \”\”
End If
End If
Next j
Next i

database = \”Project Database\”
For i = 1 To UBound(projectList)
For j = 1 To UBound(taskList)
If projectList(i) = taskList(j) Then
If taskList(i) = \”待完成\” Then
p = New Object
p.Name = projectList(i)
p.Value = \”\”
ElseIf taskList(i) = \”已完成\” Then
q = New Object
q.Name = projectList(i)
q.Value = \”\”
End If
If p.Name = projectList(i) Then
If taskList(j) = \”待完成\” Then
r = New Object
r.Name = taskList(j)
r.Value = \”\”
ElseIf taskList(j) = \”已完成\” Then
s = New Object
s.Name = taskList(j)
s.Value = \”\”
End If
If r.Name = taskList(j) Then
If q.Name = taskList(i) Then
If r.Value = \”\” Then
If taskList(i) = \”待執(zhí)行\(zhòng)” Then
x = New Object
x.Name = projectList(i)
x.Value = r.Value
ElseIf taskList(i) = \”已執(zhí)行\(zhòng)” Then
y = New Object
y.Name = projectList(i)
y.Value = r.Value
Else
z = New Object
z.Name = projectList(i)
z.Value = r.Value
End If
End If
Else
z = New Object
z.Name = taskList(j)
z.Value = r.Value
End If
End If
If s.Name = taskList(i) Then
If r.Value = \”\” Then
If taskList(i) = \”待完成\” Then
x = New Object
x.Name = taskList(i)
x.Value = s.Value
ElseIf taskList(i) = \”已完成\” Then
y = New Object
y.Name = taskList(i)
y.Value = s.Value
End If
Else
y = New Object
y.Name = taskList(j)
y.Value = s.Value
End If
End If
If x.Name = projectList(i) Then
If y.Name = projectList(i) Then
If z.Name = projectList(i) Then
If x.Value = \”\” Then
If y.Value = \”\” Then
If taskList(j) = \”待完成\” Then
o = New Object
o.Name = taskList(j)
o.Value = x.Value
ElseIf taskList(j) = \”已完成\” Then
o = New Object
o.Name = taskList(j)
o.Value = y.Value
End If
End If
End If
End If
Else
o = New Object
o.Name = taskList(j)
o.Value = x.Value
End If
End If
End If
End If
Next j
Next i

End Sub
“`

## 使用步驟

1. 創(chuàng)建一個(gè)新文檔,并將代碼復(fù)制粘貼到該文檔中。
2. 保存文件并運(yùn)行代碼。
3. 您將看到項(xiàng)目管理系統(tǒng)的創(chuàng)建過(guò)程。

版權(quán)聲明:本文內(nèi)容由互聯(lián)網(wǎng)用戶自發(fā)貢獻(xiàn),該文觀點(diǎn)僅代表作者本人。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如發(fā)現(xiàn)本站有涉嫌抄襲侵權(quán)/違法違規(guī)的內(nèi)容, 請(qǐng)發(fā)送郵件至 舉報(bào),一經(jīng)查實(shí),本站將立刻刪除。