type word.application is undefined
type word.mailmerge is undefined
etc.
I got these errors.
I found adding..
(at the top, above procedures)
..Then expand the objects with full referencing..
etc.. To the others!
Now works! So I'm happy!
If anyone else has a better idea on the solution then post it!
type word.mailmerge is undefined
etc.
I got these errors.
I found adding..
(at the top, above procedures)
VB.NET:
''UNKNOWN IF NECESSARY
[SIZE=2][COLOR=#0000ff]Imports[/COLOR][/SIZE][SIZE=2] System.Runtime.InteropServices[/SIZE]
[SIZE=2][COLOR=#0000ff]Imports[/COLOR][/SIZE][SIZE=2] Microsoft.Office.Interop.Word[/SIZE]
[SIZE=2][COLOR=#0000ff]Imports[/COLOR][/SIZE][SIZE=2] System.windows[/SIZE]
..Then expand the objects with full referencing..
VB.NET:
[SIZE=2][SIZE=2][COLOR=#0000ff]Dim[/COLOR][/SIZE][SIZE=2] theMailMergeVariable [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2] Microsoft.Office.Interop.Word.MailMerge[/SIZE]
[SIZE=2][COLOR=#0000ff]Dim[/COLOR][/SIZE][SIZE=2] theMailMergeFieldsVariable [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2] Microsoft.Office.Interop.Word.MailMergeFields[/SIZE]
''..etc..
[SIZE=2][COLOR=#0000ff]Dim[/COLOR][/SIZE][SIZE=2] g [/SIZE][SIZE=2][COLOR=#0000ff]As [/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] System.Windows.Forms.ListViewGroup[/SIZE]
[/SIZE]
etc.. To the others!
Now works! So I'm happy!
If anyone else has a better idea on the solution then post it!
Last edited: