H
Henrik
I'd like to be able to resize rows automatically in Project 2007, either in a
similar manner as you do in Excel: select one, more or all rows and
double-click on bottom of row, or an automatic row resizing function as you
go (making the row higher is more text is entered).
Is that somehow possible?
'Bob' shared a macro for 2003 doing something like that in a mail from
25/7/2006:
Create two buttons on a toolbar
Associate these macros with the buttons.
Sub Auto_wordwrap()
TxtLim = 35
For Each T In ActiveProject.Tasks
If Not T Is Nothing Then
SetRowHeight unit:=1, Rows:=Str(T.UniqueID), useuniqueid:=True
Select Case Len(T.Name)
Case TxtLim To TxtLim * 2
SetRowHeight unit:=2, Rows:=Str(T.UniqueID),
useuniqueid:=True
Case TxtLim * 2 + 1 To TxtLim * 3
SetRowHeight unit:=3, Rows:=Str(T.UniqueID),
useuniqueid:=True
Case TxtLim * 3 + 1 To TxtLim * 4
SetRowHeight unit:=4, Rows:=Str(T.UniqueID),
useuniqueid:=True
Case Is > TxtLim * 4
SetRowHeight unit:=5, Rows:=Str(T.UniqueID),
useuniqueid:=True
End Select
End If
Next T
End Sub
Sub Unwrap()
For Each T In ActiveProject.Tasks
If Not T Is Nothing Then
SetRowHeight unit:=1, Rows:=Str(T.UniqueID),
useuniqueid:=True
End If
Next T
End Sub
Does that also work for 2007? Can it be adapted?
Thanks in advance
Henrik
similar manner as you do in Excel: select one, more or all rows and
double-click on bottom of row, or an automatic row resizing function as you
go (making the row higher is more text is entered).
Is that somehow possible?
'Bob' shared a macro for 2003 doing something like that in a mail from
25/7/2006:
Create two buttons on a toolbar
Associate these macros with the buttons.
Sub Auto_wordwrap()
TxtLim = 35
For Each T In ActiveProject.Tasks
If Not T Is Nothing Then
SetRowHeight unit:=1, Rows:=Str(T.UniqueID), useuniqueid:=True
Select Case Len(T.Name)
Case TxtLim To TxtLim * 2
SetRowHeight unit:=2, Rows:=Str(T.UniqueID),
useuniqueid:=True
Case TxtLim * 2 + 1 To TxtLim * 3
SetRowHeight unit:=3, Rows:=Str(T.UniqueID),
useuniqueid:=True
Case TxtLim * 3 + 1 To TxtLim * 4
SetRowHeight unit:=4, Rows:=Str(T.UniqueID),
useuniqueid:=True
Case Is > TxtLim * 4
SetRowHeight unit:=5, Rows:=Str(T.UniqueID),
useuniqueid:=True
End Select
End If
Next T
End Sub
Sub Unwrap()
For Each T In ActiveProject.Tasks
If Not T Is Nothing Then
SetRowHeight unit:=1, Rows:=Str(T.UniqueID),
useuniqueid:=True
End If
Next T
End Sub
Does that also work for 2007? Can it be adapted?
Thanks in advance
Henrik