Is it possible to name and save the excel file produced by the data collector from a macro?
I have written a few macros to measure and collect data from an image batch. I want to be able to export the measurements to excel without having to jump into excel to name and save the file.
Any input would be highly appreciated.
Any input would be highly appreciated.
0
Best Answer
-
Hi David,
You can save XLS file directly from Data Collector table toolbar (Export | Text file) and this operation is macro recordable. Here is how the recorded macro looks:Public Function SaveDCToFile() As SimpleScript SaveDCToFile = New SimpleScript With Measure.Data.Collector.TableCommands.SaveAsText(SaveDCToFile) .UseStatistics = False .FileName = ThisApplication.Path(mcPathType.mcptWriteableDocuments) & "MyData.xls" .Run() End With End Function
Yuri0
Answers
-
This worked very nicely too! Thank you very much!0
Categories
- All Categories
- 961 Image-Pro v9 and higher
- 9 Image-Pro FAQs
- 18 Image-Pro Download & Install
- 448 Image-Pro General Discussions
- 486 Image-Pro Automation (Macros, Apps, Reports)
- 20 AutoQuant Deconvolution
- 2 AutoQuant Download & Install
- 18 AutoQuant General Discussions
- 195 Image-Pro Plus v7 and lower
- 3 Image-Pro Plus Download & Install
- 106 Image-Pro Plus General Discussions
- 86 Image-Pro Plus Automation with Macros
- 19 Legacy Products
- 16 Image-Pro Premier 3D General Discussions
- 26 Image-Pro Insight General Discussions