I have Excel that generates MS Project time schedule from excel workbook. Everything works good except for row height in MS Project. I am auto fitting cells width with ColumnBestFit command and it doing it job quite good but then MS Project is wrapping my text in "Task Name" field for some reason. I would like to adjust same height for all rows in my project. How it is possible with addition to the code below?
Sub SaveProjectToTheSameFolder()
Dim pjApp As Object
Dim I As Integer ' Index used in For...Next loop.
Dim r As Integer ' Index used in For...Next loop.
Set pjApp = CreateObject("MSProject.Application")
pjApp.Visible = True
For I = 3 To 6
pjApp.ColumnBestFit Column:=I
Next I
For r = 1 To 120
RowHeight = 15
pjApp.WrapText
Next r
pjApp.FileSaveAs ThisWorkbook.Path & "\" & Worksheets("MAIN").Range("D14").Value & ", " & Worksheets("MAIN").Range("D11").Value & "_" & "timeschedule" & "_" & ".mpp"
pjApp.FileClose
pjApp.Quit
End Sub