11-30-2007, 09:12 AM
Can you show me a example to show autofilter in Excel?
Excel AutoFilter
|
11-30-2007, 09:12 AM
Can you show me a example to show autofilter in Excel?
11-30-2007, 09:45 AM
11-30-2007, 09:52 AM
Try to record Excel macro and run it from QM macro.
a.ws.Application.Run("ExcelMacro")
11-30-2007, 09:58 AM
In Excel, the macro saved:
Rows("1:1").Select Selection.AutoFilter how can I do it in QM Language?
11-30-2007, 10:06 AM
Optional VARIANTs can be replaced to @. Try
r.AutoFilter(@ @ 1)
11-30-2007, 10:19 AM
It doesn't work.
11-30-2007, 11:30 AM
11-30-2007, 11:38 AM
Or
Excel.Range r=a.ws.Range("A1") Don't know why Excel does not like r.AutoFilter(@ @ 1). But in QM you cannot use r.AutoFilter() if some arguments are not VARIANT. In VBScript, r.AutoFilter works, but r.AutoFilter , , 1 fails like in QM.
11-30-2007, 11:45 AM
Thanks.
11-30-2007, 11:48 AM
Or can be used IDispatch. Then you can omit all arguments. Excel and VBScript also use this, because variable type there is not specified, and then the default type for interface pointers is IDispatch.
or |
« Next Oldest | Next Newest »
|