- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Is there somewhere I can find good code examples for writing to an Excel spreadsheet?
I have the basics down and I can write to the spreadsheet, but I can't find tutorials on what I would specifically like to do.
In a nutshell I'd like the code to:
1) Query all rows in a specific column for an existing text string (in this case a part number). 'See if the part is already on the spreadsheet
1A) If text string does not exist, write the part number (iproperty value) to the next available empty cell in the column (working downward). 'Add a part to the spreadsheet that isn't there already
1B) If the string does exist, write to a specific cell in the same row where the string exists by increasing the number value in that cell by 1. 'Increase quantity of existing parts on the spreadsheet
My issues lie in the coding for the query and utilizing the query results to drive cell placement. I have had success with moving data between the model and the spreadsheet...
Thanks!
Solved! Go to Solution.