Topic: copying to Windows clipboard via macro (1 of 2), Read 33 times
Conf: Wildfile, Other macros
From: howard schmidt
Date: Friday, November 07, 2003 02:43 PM

I have some very large files that I run through a vedit macro, then import to MS Excel. I now have to manually SELECT ALL, then, PASTE TO CLIPBOARD before importing to Excel.

Is there macro language that I can add to the end of my current macros that will copy the entire file then paste to the Windows clipboard? I have been trying all types of ways to complete this task and I am stumped.

Thanks for any assistance.

 


Topic: Re: copying to Windows clipboard via macro (2 of 2), Read 37 times
Conf: Wildfile, Other macros
From: Christian Ziemski
Date: Friday, November 07, 2003 03:53 PM


Try Clip_Copy_Block(0,File_Size)


From the online help:

Clip_Copy_Block(p,q)

Copy the block of text between file positions
'p' and 'q' to the Windows clipboard (Win32 only).
The COLUMN, COLSET, LINESET, LINEBLOCK, RESET, DELETE and FILL options
can be used in the same way as for the Reg_Copy_Block( ) command.

Note: Only text should be copied to the clipboard.
Binary data should not be copied; the copy will be truncated at
the first Null character.

HTH

Christian