1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Microsoft Project 98 issues

Discussion in 'Business Applications' started by kevsim, Sep 2, 2004.

Thread Status:
Not open for further replies.
  1. kevsim

    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
     
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 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/269515

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice