I'd like to be able to return an FFT as an array function.
I'd also like to use the fourier functionality in the ATPVBAEN.XLA add-in. Unfortunately, The only two Fourier-related items in there seem to be Fourier and FourierQ - both of which are subs and both of which take ranges as arguments. They also seem to want actual ranges - not simply a dummy variable declared as a range. What's more, they seem to insist on changing the supplied output range - so I know I can't use that in a function, since XL doesn't like that kind of thing.
I could call the FFT from another library but that means I'd also have to ensure that users had the library available and properly referenced too - which is a bit of a pain, or I could use my own FFT hand-coded version, but that is a bit slow.
So, does anyone know of a way round this problem? Is there a way of calling a (undocumented?) function version of Fourier - or a sub which uses a variant or array rather then a range? Even a pointer to some decent help for ATPVBAEN.XLA would be useful.
I'd also like to use the fourier functionality in the ATPVBAEN.XLA add-in. Unfortunately, The only two Fourier-related items in there seem to be Fourier and FourierQ - both of which are subs and both of which take ranges as arguments. They also seem to want actual ranges - not simply a dummy variable declared as a range. What's more, they seem to insist on changing the supplied output range - so I know I can't use that in a function, since XL doesn't like that kind of thing.
I could call the FFT from another library but that means I'd also have to ensure that users had the library available and properly referenced too - which is a bit of a pain, or I could use my own FFT hand-coded version, but that is a bit slow.
So, does anyone know of a way round this problem? Is there a way of calling a (undocumented?) function version of Fourier - or a sub which uses a variant or array rather then a range? Even a pointer to some decent help for ATPVBAEN.XLA would be useful.