J
jdb
Hi all,
I know the preferred method of exporting tsv data to excel is with the
timescaledata function, but there are a number of reasons why I need to
copy/paste. First, the project file is huge (over 5000 tasks) and using the
timescaledata method takes close to an hour:
For row = 1 To ActiveProject.Tasks.count
xlSheet.Cells(row, 1) = ActiveProject.Tasks(row).Text18
xlSheet.Cells(row, 2) = ActiveProject.Tasks(row).Text24
xlSheet.Cells(row, 3) = ActiveProject.Tasks(row).Text27
xlSheet.Cells(row, 4) = ActiveProject.Tasks(row).Text22
xlSheet.Cells(row, 5) = ActiveProject.Tasks(row).Text15
xlSheet.Cells(row, 6) = ActiveProject.Tasks(row).Text14
xlSheet.Cells(row, 7) = ActiveProject.Tasks(row).Name
xlSheet.Cells(row, 8) = ActiveProject.Tasks(row).ResourceNames
xlSheet.Cells(row, 9) = ActiveProject.Tasks(row).Text23
xlSheet.Cells(row, 10) = ActiveProject.Tasks(row).Work
xlSheet.Cells(row, 11) = ActiveProject.Tasks(row).Duration
xlSheet.Cells(row, 12) = ActiveProject.Tasks(row).Start
xlSheet.Cells(row, 13) = ActiveProject.Tasks(row).Finish
Set tsvPF = ActiveProject.Tasks(row).TimeScaleData( _
"7/1/2008", "6/30/2009", TimescaleUnit:=pjTimescaleMonths)
For col = 13 To tsvPF.count + 13
If tsvPF(col - 13).Value <> "" Then
xlSheet.Cells(row, col).Value = tsvPF(col - 13).Value / 60
End If
Next
Next
The people who will be running this export tool won't want to wait an hour
every time the have to run this report. Second, there is a complex filter in
place that is based on hidden, sensitive (read inaccessible) fields. The
timescaledata function doesn't seem to be effected by filters but I could
copy/paste the correct data from the view. Finally, the data must be
exported to a spreadsheet that was created by copy/pasting the work details
so there are a number of formulas that need to line up with certain rows in
the data.
Long story short: does anyone know the secret to changing panes in the task
usage view so I can copy/paste the work detail data (the PaneNext function
doesn't work)?
I know the preferred method of exporting tsv data to excel is with the
timescaledata function, but there are a number of reasons why I need to
copy/paste. First, the project file is huge (over 5000 tasks) and using the
timescaledata method takes close to an hour:
For row = 1 To ActiveProject.Tasks.count
xlSheet.Cells(row, 1) = ActiveProject.Tasks(row).Text18
xlSheet.Cells(row, 2) = ActiveProject.Tasks(row).Text24
xlSheet.Cells(row, 3) = ActiveProject.Tasks(row).Text27
xlSheet.Cells(row, 4) = ActiveProject.Tasks(row).Text22
xlSheet.Cells(row, 5) = ActiveProject.Tasks(row).Text15
xlSheet.Cells(row, 6) = ActiveProject.Tasks(row).Text14
xlSheet.Cells(row, 7) = ActiveProject.Tasks(row).Name
xlSheet.Cells(row, 8) = ActiveProject.Tasks(row).ResourceNames
xlSheet.Cells(row, 9) = ActiveProject.Tasks(row).Text23
xlSheet.Cells(row, 10) = ActiveProject.Tasks(row).Work
xlSheet.Cells(row, 11) = ActiveProject.Tasks(row).Duration
xlSheet.Cells(row, 12) = ActiveProject.Tasks(row).Start
xlSheet.Cells(row, 13) = ActiveProject.Tasks(row).Finish
Set tsvPF = ActiveProject.Tasks(row).TimeScaleData( _
"7/1/2008", "6/30/2009", TimescaleUnit:=pjTimescaleMonths)
For col = 13 To tsvPF.count + 13
If tsvPF(col - 13).Value <> "" Then
xlSheet.Cells(row, col).Value = tsvPF(col - 13).Value / 60
End If
Next
Next
The people who will be running this export tool won't want to wait an hour
every time the have to run this report. Second, there is a complex filter in
place that is based on hidden, sensitive (read inaccessible) fields. The
timescaledata function doesn't seem to be effected by filters but I could
copy/paste the correct data from the view. Finally, the data must be
exported to a spreadsheet that was created by copy/pasting the work details
so there are a number of formulas that need to line up with certain rows in
the data.
Long story short: does anyone know the secret to changing panes in the task
usage view so I can copy/paste the work detail data (the PaneNext function
doesn't work)?