D
Dave Neve
Hi
Still a total novice (and for a long time to be), I've finally got the bit
of code below to work (given recently in the group)
Sub AutoOpen()
If ActiveDocument.Name = "Mydoc.doc" Then
Myform.Show
End If
End Sub
but only when 'Mydoc.doc is opened and Visual Basics too.
From Visual Basics, when I execute the code, Myform appears but when I do it
from Mydoc.doc alone, nothing happens. (Tools, Macro and then I select the
macro and click it)
Why isn't the code activated the moment I open Mydoc.doc when I activate my
macro?
Thanks in advance
Still a total novice (and for a long time to be), I've finally got the bit
of code below to work (given recently in the group)
Sub AutoOpen()
If ActiveDocument.Name = "Mydoc.doc" Then
Myform.Show
End If
End Sub
but only when 'Mydoc.doc is opened and Visual Basics too.
From Visual Basics, when I execute the code, Myform appears but when I do it
from Mydoc.doc alone, nothing happens. (Tools, Macro and then I select the
macro and click it)
Why isn't the code activated the moment I open Mydoc.doc when I activate my
macro?
Thanks in advance