Jump to content

How to copy a group of cells using Autoit


Recommended Posts

Hello Guys!

Sorry for my english, it's not my first language.

 

I'm trying to copy a group of cells from MS Excel using Autoit, but I can just copy one cell.

If I try to copy a group, the result returns 0.

 

My code that works fine but copying one cell

Local $oRange = $oWorkbook.ActiveSheet.Range("L4")

sleep(1000)
clipPut($$oRange)
sleep(300)
$sData = ClipGet()
sleep(300)

;run notepad
run("notepad.exe")
sleep(300)
MsgBox($MB_SYSTEMMODAL, "", $sData)
send("^v")

If I try inserting a group of cells, it will return 0

Local $oRange = $oWorkbook.ActiveSheet.Range("L4:O4")

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...