B
BMC
I have users who have a Word doc that does a mail merge from an Excel
workbook and want the workbook to open for on the fly editing as the doc
opens.
Now whilst the code to fire up Excel and open the document is trivial, e.g.
Sub AutoOpen()
Set xlApp = CreateObject("Excel.Application")
xlApp.Visible = True
Set xlWB = xlApp.Workbooks.Open("c:\mail.xls")
End Sub
the workbook opens as "read only". If opened manually after the doc opens,
it opens normally. If the same macro is used where mail merge is not set up
the document is not read only.
Any ideas how to make the workbook open editable?
Cheers
workbook and want the workbook to open for on the fly editing as the doc
opens.
Now whilst the code to fire up Excel and open the document is trivial, e.g.
Sub AutoOpen()
Set xlApp = CreateObject("Excel.Application")
xlApp.Visible = True
Set xlWB = xlApp.Workbooks.Open("c:\mail.xls")
End Sub
the workbook opens as "read only". If opened manually after the doc opens,
it opens normally. If the same macro is used where mail merge is not set up
the document is not read only.
Any ideas how to make the workbook open editable?
Cheers