Results 1 to 5 of 5

Thread: TempDDE

  1. #1
    Lord13
    Guest

    TempDDE

    Hi All,

    Thanks in advance for the support. I got a tough one, so here it goes:

    It may help to read the follow links for an overview:

    <A target="_blank" HREF=http://www.irmsonline.com/irmskb/ambiguous_name_detected.htm>http://www.irmsonline.com/irmskb/amb...e_detected.htm</A>

    <A target="_blank" HREF=http://www.archive4images.com/support/faq/faq48_e.shtml>http://www.archive4images.com/support/faq/faq48_e.shtml</A>

    <A target="_blank" HREF=http://www.abacuslaw.com/help/abacus/knwbase/techpage36.html>http://www.abacuslaw.com/help/abacus...echpage36.html</A>

    To recreate the problem: Right click on a Word Document in Explorer and select Print. Before Word has a chance to print the document and close, end task on it (might be a bit tricky to beat Word to the punch).

    If you could look in the TempDDE macro you would see:

    (sic)
    Sub TempDDE

    WordBasic.Open

  2. #2
    Platinum Lounger
    Join Date
    Dec 2000
    Location
    Queanbeyan, New South Wales, Australia
    Posts
    3,730
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: TempDDE

    Scott,

    What we've done is to have a template in the startup directory, which deletes the TempDDE macro when the user starts up Word.

    I don't have the code here, I can post it later if that helps.
    Subway Belconnen- home of the Signboard to make you smile. Get (almost) daily updates- follow SubwayBelconnen on Twitter.

  3. #3
    Star Lounger
    Join Date
    Jan 2001
    Location
    New York, New York, USA
    Posts
    84
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: TempDDE

    <img src=/S/joy.gif border=0 alt=joy width=23 height=23> PLEASE post the code. That dang TempDDE has greyed my hair considerably.

  4. #4
    Platinum Lounger
    Join Date
    Dec 2000
    Location
    Queanbeyan, New South Wales, Australia
    Posts
    3,730
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: TempDDE

    OK, here goes:
    <pre>Public Sub Autoexec()

    Dim i As Integer
    Dim sName As String
    Dim blnChanged As Boolean

    blnChanged = False

    ' Delete any redundant routines
    For i = NormalTemplate.VBProject.VBComponents.Count To 1 Step -1
    sName = NormalTemplate.VBProject.VBComponents(i).Name
    If LCase$(sName) = "tmpdde" Then
    blnChanged = True
    Application.OrganizerDelete Source:=NormalTemplate.FullName, _
    Name:=sName, Object:=wdOrganizerObjectProjectItems
    End If
    Next

    If blnChanged Then
    NormalTemplate.Save
    End
    End If
    End Sub
    </pre>


    Put this into a template in the Word startup directory. Start by putting a msgbox in, to ensure that it does execute.
    Subway Belconnen- home of the Signboard to make you smile. Get (almost) daily updates- follow SubwayBelconnen on Twitter.

  5. #5
    Lord13
    Guest

    Re: TempDDE

    Geoff,

    Thanks, that's a good idea. I was really hoping someone would know a switch I could add to the executable path that would do them same thing as DDE. If it can be done with the Open action, there should be a way to do it with the Print action. For the environment I'm working in that would be the optimal fix.

    Scott

Posting Permissions

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