Chenotjoh Posted April 14, 2010 Posted April 14, 2010 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
Juvigy Posted April 14, 2010 Posted April 14, 2010 $test=$oExcel.ActiveSheet.Range("J:J") $test2=$oExcel.Application.ActiveSheet.Range("I:I").AdvancedFilter(2,Default,$test,true) Something like this works for me.
Chenotjoh Posted April 15, 2010 Author Posted April 15, 2010 Wonderfull, Thanks Juvigy Question: Is there a kind of doc where I can learn to translate VBA to AutoIt? Best regards
Juvigy Posted April 15, 2010 Posted April 15, 2010 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now