Modify the Spreadsheet Exported from RequisitePro 2007
来源:互联网 发布:去淘宝搜白夜追凶 编辑:程序博客网 时间:2024/05/16 04:07
用RequisitePro 2007做需求文档的跟踪tracking, 会遇到一个问题。无论是trace to还是trace from, 都要将制作好的view导出到word中。但是,RequistePro 导出后的数据林乱繁杂,例如,下表。并不满足要求。
SSDD -- CI Traceability Matrix (condensed)
SSDD1: Scope
CI2.1.3.2 (F)
CI2.10.10.1.1 (F)
SSDD1.2: DCT Overview
CI1.1 (F)
CI1.6.5 (F)
SSDD3: Operational Concepts
CI1.6.2 (F)
CI2.1 (F)
SSDD3.2: Mission
CI2.4.6.1 (F)
本人先将一个view导出到excel,然后写了一个小程序将不需要的字符删除掉。
1. 第一段,删除“:”后面不需要的标题内容
Dim strColumnLabel As String
Dim nPos As Integer
Sub DeleteFromColon()
strColumnLabel = ""
Cells.Range("A1:A100").Select
strColumnLabel = ""
Do While ActiveCell.Row <> 100
ActiveCell.Offset(1, 0).Activate
strColumnLabel = ActiveCell.Value
nPos = InStr(1, strColumnLabel, ":")
If nPos > 0 Then
strColumnLabel = Left(strColumnLabel, nPos - 1)
ActiveCell.Value = strColumnLabel
End If
Loop
End Sub
2. 压缩选定的column内容到一个column中,并删除不必要的字符,例如(F)
Sub crashColumnsIntoOne()
Dim nCol, nRow As Integer
nCol = 1
nRow = 1
Do While nRow <= Selection.Rows.Count
strColumnLabel = ""
Do While nCol <= Selection.Columns.Count
If Len(Selection.Cells(nRow, nCol).Value) > 0 Then
If Len(strColumnLabel) > 0 Then
strColumnLabel = strColumnLabel & "," & Selection.Cells(nRow, nCol).Value
Else
strColumnLabel = strColumnLabel & Selection.Cells(nRow, nCol).Value
End If
strColumnLabel = Replace(strColumnLabel, "(F)", "")
End If
nCol = nCol + 1
Loop
Selection.Cells(nRow, 1).Value = strColumnLabel
nCol = 1
nRow = nRow + 1
Loop
End Sub
- Modify the Spreadsheet Exported from RequisitePro 2007
- How to modify the uboot environment from userspace
- How to modify the uboot environment from userspace
- Generate Excel Spreadsheet from PeopleCode
- Generate Excel Spreadsheet from PeopleCode
- Resolution to the record count increasing of the file exported from DB when ‘0A’ is included in it
- Open context.xml from /tomcat/conf folder and modify the context to match this :
- sqlite3 modify the column
- Modify the server ports
- without permission not exported from uid
- Permission Denial not exported from uid
- Permission Denial not exported from uid
- could not open the spreadsheet
- modify the login prompt message
- Using classes exported from a DLL using LoadLibrary
- ASP.NET: Dispaly data from an Excel Spreadsheet
- ASP.NET: Dispaly data from an Excel Spreadsheet
- ASP.NET: Dispaly data from an Excel Spreadsheet
- Windows API一日一练(46)EnterCriticalSection和LeaveCriticalSection函数
- 查看FreeBSD系统状态
- Windows API一日一练(45)CreateEvent和SetEvent函数
- Windows API一日一练(44)wsprintf函数
- SaaS专题(六)--ERP世界中的SaaS
- Modify the Spreadsheet Exported from RequisitePro 2007
- Windows API一日一练(43)WaitForSingleObject函数
- FreeBSD下的系统性能调优
- 管理者的自省:用三流人才赚一流的钱
- FreeBSD系统优化部分内核参数调整中文注释
- 你为你的BLOG找了经纪人了吗?
- FreeBSD性能FAQ
- Windows API一日一练(41)FindWindowEx函数
- SaaS专题(五)--网友评论:我一直不看好SaaS