You may have to modify the registry as per
http://support.microsoft.com/?kbid=825765
The easiest way to do that for each workstation is to create the necessary
entriy on one system, export it to a .reg file, edit with Notepad to cut out
everything except the entries you need, then distribute it and ask users to
double-click on the .reg. That assumes that admin. lockdowns are not in
place to prevent exactly that (in which case you probably have your own
mechanism for distributing changes).
> Here is the code I'm using (again thanks to a helper on here) Could
> someone please look at it and see if I have too many of the wdApp objDoc
> objWord in
So far, you don't need wdApp or wdDoc.
After you have made the connection, are you leaving the user to do the
actual merge?
Is the Excel workbook the current workbook in Excel? If so, you can use
.OpenDataSource _
Name:=ActiveWorkbook.FullName, _
SQLStatement:="SELECT * FROM [DataBase$]"
(note that you should really use SQLStatement above, not SQLStatement1 as
you have at present, although it doesn't actually make any difference since
the statement word uses is SQLStatement & SQLStatement if you see what I
mean)
If you need to use DDE as discussed elsewhere, try
.OpenDataSource _
Name:=ActiveWorkbook.FullName, _
Connection:="Entire Spreadsheet", _
SubType:=wdMergeSubTypeWord2000
> it and especially help me with an automated way to set a reference to the
> Word Object library,
Sorry, I don't know how to do that. But you may be able to get away with
Dim objWord As Object
Dim objDoc As Object
(AIUI the references are there to assist with "Intellisense/Autocomplete"
and of course so that you can be specific about the types of the objects
concerned).
Peter Jamieson
> Hello,
> I have WORD 2003 and Excel 2003 with WINXP Pro and have the following
[quoted text clipped - 62 lines]
> Set objDoc = Nothing
> Set objWord = Nothing
LabrGuy Bob R - 16 Apr 2007 19:22 GMT
Thanks for the help. It does have a lockdown so that would be out. I'm going
to modify the code I'm using to clean it up as you suggested.
> So far, you don't need wdApp or wdDoc.
Thanks
> After you have made the connection, are you leaving the user to do the
> actual merge?
The user can select the record number and must select the view the data.
> Is the Excel workbook the current workbook in Excel? If so, you can use
>
[quoted text clipped - 21 lines]
> Dim objWord As Object
> Dim objDoc As Object
I was thinking that might actually be the case but wasn't sure.
Thanks so much for the help and the response. It's greatly appreciated.
BOB Reynolds