Microsoft Project 98 issues

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

kevsim

Thread Starter
Joined
Sep 2, 2004
Messages
9
Using the below VB in Microsoft Project 98, when I reach the line "For each A ---, I receive the following error message "Object variable or With block variable not set".
Sub ResourceNames()
Dim A As Assignment
For Each A In activecell.Task.Assignments
MsgBox A.ResourceName
Next A
End Sub

Also the below code gives an eror message "Object required"

Sub SelectedTasks()
Dim T As Task
If Not (activeselection.Tasks Is Nothing) Then
For Each T In activeselection.Tasks
MsgBox T.Name
Next T
End If
End Sub

I would appreciate some advise to solve the above problems.
kevsim
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Members online

Top