Yes, of course it's possible. Read Help on document objects and their
methods.
> When I do the following both the ActiveDocumnet and ("c:\TempA") close. I
> would like to keep the ActiveDocument open and just close ("c:\TempA"). Is
[quoted text clipped - 64 lines]
>> >> 2.
>> >> Kill "c:\TempA.doc"
I’m stuck. I have looked at the help on document objects and their methods. I
thought I had it figured out, but I don’t. Here are the steps I am following:
1 I open my existing document.
2 I click on my CommandButton to open form
3 I click on my Copy button which I want to copy the fields in the form
using the following macro:
Private Sub Copy1_Click()
With ActiveDocument
.Variables("varA").Value = Cmd1.Value
.Variables("varB").Value = Text1.Text
etc
.SaveAs ("c:\TempA")
Documents("c:\TempA.doc").Close SaveChanges:=wdSaveChanges
End With
End Sub
This saves and closes TempA.Doc. It looks like using the ‘SaveAs’ is taking
my original document and making it TempA so when TempA closes there is no
original document still open. How do I keep my original existing document
open?
> Yes, of course it's possible. Read Help on document objects and their
> methods.
[quoted text clipped - 67 lines]
> >> >> 2.
> >> >> Kill "c:\TempA.doc"
LEU - 17 Feb 2007 23:18 GMT
After talking to the group that request this I found out that the original
really does not need to stay open. So my code works fine as is.
Jezebel, I want to thank you for you help. I am glad that people like you
are out there and willing to help.
> I’m stuck. I have looked at the help on document objects and their methods. I
> thought I had it figured out, but I don’t. Here are the steps I am following:
[quoted text clipped - 90 lines]
> > >> >> 2.
> > >> >> Kill "c:\TempA.doc"