Copying values to Excel
I simply want to put a value (text) into an Excel cell, I guess I have to copy the value to the cipboard and then paste it into a cell, but i can't work out the details. Can anyone give me the code for this, or is there a tutorial somewhere?
0
Best Answers
-
I need to put values in a specified cells. Either into the current open worksheet, or into a specified sheet.0
-
Paul,
You can use ExportToExcel command as in this example:Public Sub ExcelTest With Mediacy.Automation.Measure.Data.ExportCommands.ExportToExcel(Nothing) .AbsolutePosition=New System.Drawing.Point(4,2)'X/Y position, Column/Row in the active sheet .Run("My text to Excel","") End With End Sub
Yuri0
Answers
-
Paul,
The easiest way would be to print your text to the Output window and then export that window to Excel. Will it work for you? Or you want specify Excel sheet, cell address, text and send it to Excel?
Yuri0 -
That's just what I need - thanks0
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