Hi,
I need to open up MS Project Professional. In a excel spreadsheet (under column A) I have the names of the enterprise projects that I want to open. For some reason it is not doing anything.
Can anyone help me?
Sub OpenFile()
'deleting the first row
Rows("1:1").Select
Selection.Delete Shift:=xlUp
Dim Projects As Object
Dim Winproj As Application
'running a loop
Application.ScreenUpdating = False
For x = 1 To 1000 Step 1
If Range("A" & x) = Not (Null) Then
Set Range("A" & x).Copy = Projects
Set Winproj = New MSProject.Application
'Winproj.ActiveWindow.Activate
Winproj.Visible = True
Winproj.ActiveWindow.Activate
Workbooks.Open Filename:=("<>\" & Projects)
End If
Next
End Sub
I need to open up MS Project Professional. In a excel spreadsheet (under column A) I have the names of the enterprise projects that I want to open. For some reason it is not doing anything.
Can anyone help me?
Sub OpenFile()
'deleting the first row
Rows("1:1").Select
Selection.Delete Shift:=xlUp
Dim Projects As Object
Dim Winproj As Application
'running a loop
Application.ScreenUpdating = False
For x = 1 To 1000 Step 1
If Range("A" & x) = Not (Null) Then
Set Range("A" & x).Copy = Projects
Set Winproj = New MSProject.Application
'Winproj.ActiveWindow.Activate
Winproj.Visible = True
Winproj.ActiveWindow.Activate
Workbooks.Open Filename:=("<>\" & Projects)
End If
Next
End Sub