Results 1 to 2 of 2

Thread: how to declare the DTE ???

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2000
    Posts
    18

    Question how to declare the DTE ???

    How do I declare/use DTE

    I copied this example out of the microsoft help but am getting compilation errors as the Variables are not defined.


    Code:
    For d = 1 To DTE.Documents.Count
                If DTE.Documents.Item(d).Saved Then
                    DTE.Documents.Item(d).Close()
                End If
    Next d
    d is easy:
    Code:
    dim d as integer
    but how do I declare DTE?

    Can anybody point me in the right direction?
    Trying to use VB 5

  2. #2
    Lively Member
    Join Date
    Jan 2000
    Location
    treehouse
    Posts
    106
    You need to reference the EnvDTE object.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width