Jump to content

Recommended Posts

Posted

Hi

I'm writing a small script to use with an excel table where i would like to use the advanced filtering possibilities. I've understood that not everything in VBA can be used in AutoIT but that this must be translated. So my question is can anyone help me with this phrase in VBA

- Columns("I:I").AdvancedFilter Action:=xlFilterCopy, CopyToRange:=Range("J2"), Unique:=True

I've tried to translate as follows:

$oExcel.ActiveSheet.Columns("I:I").AdvancedFilter Action:=xlFilterCopy, CopyToRange:=Range("J2"), Unique:=True

But of course "no goal"

Many thanks in advance

Posted

$test=$oExcel.ActiveSheet.Range("J:J")
        $test2=$oExcel.Application.ActiveSheet.Range("I:I").AdvancedFilter(2,Default,$test,true)

Something like this works for me.

Posted

Dont know if there is a doc but there is converter somewhere in the example scripts

and you can always check on the MDSN there is a complete developer reference.

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
  • Recently Browsing   0 members

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