S
Sajit
I have a Gantt chart of employees' leave planning dates created by data
copied from excel. Apart from the Leave_start and Leave_finish date columns,
there are text fields, such Empl_name, Empl_no etc. I want to make the font
of the repeating rows of the text data as white, so that it does not appear.
I had intially prepared this list in excel for pasting into project, where I
had done the formatting of the text to white. But on pasting the selection on
to project. The format in excel was not taken, the rows of text appear.
I am trying to create the same macro in project, but got stuck as to how to
refer to the value in a text cell.
This is the code that I am trying to run,
Sub Macro3()
' Macro Macro3
' Macro Recorded Tue 31/10/06
'Font Color:=7
Dim empl_no1 As String
SelectTaskField Row:=1, Column:="Text3", RowRelative:=False
empl_no1 = Text3.Value
i = 0
While empl_no <> ""
If i = 0 Then
SelectTaskField Row:=0, Column:="Text1", RowRelative:=False
Else
SelectTaskField Row:=1, Column:="Text1", RowRelative:=True
End If
If ActiveCell.Value = "" Then
SelectTaskField Row:=0, Column:="Text1", RowRelative:=False,
Width:=4, Extend:=True
Font Color:=7
End If
SelectTaskField Row:=0, Column:="Text3", RowRelative:=True
empl_no1 = ActiveCell.Value
i = i + 1
Wend
End Sub
copied from excel. Apart from the Leave_start and Leave_finish date columns,
there are text fields, such Empl_name, Empl_no etc. I want to make the font
of the repeating rows of the text data as white, so that it does not appear.
I had intially prepared this list in excel for pasting into project, where I
had done the formatting of the text to white. But on pasting the selection on
to project. The format in excel was not taken, the rows of text appear.
I am trying to create the same macro in project, but got stuck as to how to
refer to the value in a text cell.
This is the code that I am trying to run,
Sub Macro3()
' Macro Macro3
' Macro Recorded Tue 31/10/06
'Font Color:=7
Dim empl_no1 As String
SelectTaskField Row:=1, Column:="Text3", RowRelative:=False
empl_no1 = Text3.Value
i = 0
While empl_no <> ""
If i = 0 Then
SelectTaskField Row:=0, Column:="Text1", RowRelative:=False
Else
SelectTaskField Row:=1, Column:="Text1", RowRelative:=True
End If
If ActiveCell.Value = "" Then
SelectTaskField Row:=0, Column:="Text1", RowRelative:=False,
Width:=4, Extend:=True
Font Color:=7
End If
SelectTaskField Row:=0, Column:="Text3", RowRelative:=True
empl_no1 = ActiveCell.Value
i = i + 1
Wend
End Sub