I have large worksheets (XYXY type) for which I want to take the derivative of all the Y columns (with respect to the associated X) and put the results in another sheet(also XYXY) with appropriate colmmn names. Thus, if raw data column names are A1, A2, A3... then derivative columns will be called derA1, derA2, etc.
I want use script rather than a template as there are hundreds of columns in each sheet.
Presumably the same loop could be used to fit or find single peak of all the derivatives oor to plot all results (using plotxy?)
How can I do this for all worksheets in the workbook?
To loop over all workbooks, you can use the document -e command. For worksheets in a workbook, you can write another loop to loop over the sheets in the workbook.