02-03-2010, 07:09 PM
If you want to copy cells from Excel and paste in another window, here is how to do it:
Macro Macro1269
This is whole macro. Run it.
Before running this macro, select all cells in a row to be copied.
Macro Macro1269
;/exe 1
;this code gets values of all selected cells
ExcelSheet es.Init
ARRAY(str) a; int i
es.GetCells(a "sel")
;this code types everything in Notepad
act "Notepad"
spe 10
for i 0 a.len
,str& s=a[0 i]
,key (s) Y
This is whole macro. Run it.
Before running this macro, select all cells in a row to be copied.