Quantcast
Channel: VBForums - Reporting
Viewing all articles
Browse latest Browse all 594

[RESOLVED] Copying data from excel into word - code error

$
0
0
Hi!
I need to create a word document from excel, and I'm using a code which gives me the "Wrong number of arguments or invalid property assignment" compile error.

If anyone could help me, I would really appreciate it!

Sub Functional_Testing()
Functional_Testing Macro
Dim appWord Object
Set appWord = CreateObject("Word.application")
appWord.Visible = True
Sheet("Word System Setup").Range("B21:H72").Copy
appWord.Documents.Add.Content.Paste
End Sub

Thanks!

Viewing all articles
Browse latest Browse all 594

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>