Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Excel array copy paste loop
#2
Macro Macro3204
Code:
Copy      Help
ExcelSheet es.Init
ARRAY(str) a
es.CellsToArray(a "sel") ;;get the selected cells. Or you can use a column/row/range definition; see examples.
int row
for row 0 a.len
,str s=a[0 row]
,OnScreenDisplay F"Row {row+1}. Press Down to paste."
,wait 0 KF D
,OsdHide
,key H SE ;;if field text not empty, select it to replace
,paste s
OnScreenDisplay "Done"


#ret
area for testing


Messages In This Thread
Excel array copy paste loop - by rob85048 - 07-08-2022, 07:23 AM
RE: Excel array copy paste loop - by Gintaras - 07-08-2022, 08:53 AM
RE: Excel array copy paste loop - by rob85048 - 07-09-2022, 06:22 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)