mcomisar
14th March 2007, 01:11 PM
Hi,
This is my first post on this forum, and I am pretty new to macros in Minitab... I have a lot of c/c++ experience, so minitab is really frustrating!! this should be so easy...
anyway,
I am trying to write a macro that will perform a normality test and capability analysis on all the columns in the worksheet... But the number of columns isnt known prior to running the macro. I need to count the number of columns that contain data.
Of course my first approach was to use a loop and the count command... well unfortunately, the count on an empty column triggers an error, not an empty flag ('*'). I spoke with minitab customer service, and they gave me a cludgey way of counting the cols using the stack command. However, this does not work if any of the columns is text.
Can anyone give me a method to determine the number of columns containing data?
Thanks!
This is my first post on this forum, and I am pretty new to macros in Minitab... I have a lot of c/c++ experience, so minitab is really frustrating!! this should be so easy...
anyway,
I am trying to write a macro that will perform a normality test and capability analysis on all the columns in the worksheet... But the number of columns isnt known prior to running the macro. I need to count the number of columns that contain data.
Of course my first approach was to use a loop and the count command... well unfortunately, the count on an empty column triggers an error, not an empty flag ('*'). I spoke with minitab customer service, and they gave me a cludgey way of counting the cols using the stack command. However, this does not work if any of the columns is text.
Can anyone give me a method to determine the number of columns containing data?
Thanks!





