Sign in to follow this  
Followers 0
Chenotjoh

translation VBA to AutoIT

4 posts in this topic

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

Share this post


Link to post
Share on other sites



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

Something like this works for me.

Share this post


Link to post
Share on other sites

Wonderfull, Thanks Juvigy

Question: Is there a kind of doc where I can learn to translate VBA to AutoIt?

Best regards

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
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
Sign in to follow this  
Followers 0