Hey all,
I've written a macro that works fine if I call it from the active sheet (that's how I wrote it). But I now need to use the same macro across multiple sheets in multiple work books. Or I guess I could copy all the ranges my macro needs from the various workbooks to this new one. Then run my macro. Either way I need some help.
My macro in a nutshell, takes a range and sorts it, then after culling out specific rows passes them to a function to summarize them. That gets passed back as an array then output to a range. There are two lines where I explicitly use sheet references. When I sort and when I output. Both use the active sheet property. Im actually on lunch and posting on my phone. If you need to see my code I can supply it shortly.
Any advice appreciated.
I've written a macro that works fine if I call it from the active sheet (that's how I wrote it). But I now need to use the same macro across multiple sheets in multiple work books. Or I guess I could copy all the ranges my macro needs from the various workbooks to this new one. Then run my macro. Either way I need some help.
My macro in a nutshell, takes a range and sorts it, then after culling out specific rows passes them to a function to summarize them. That gets passed back as an array then output to a range. There are two lines where I explicitly use sheet references. When I sort and when I output. Both use the active sheet property. Im actually on lunch and posting on my phone. If you need to see my code I can supply it shortly.
Any advice appreciated.