Open word document, use wd.editcopy to clipboard. Now I open a ascii file with
Open "xxx.txt" for output as 1
Now, how do I paste the clipboard into this document?
Printable View
Open word document, use wd.editcopy to clipboard. Now I open a ascii file with
Open "xxx.txt" for output as 1
Now, how do I paste the clipboard into this document?
now you can write the contents of strvar to the file.Code:dim strvar as string
strvar = Clipboard.GetText