Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27554

Populate Cells in Excel Using Loop

$
0
0
I'm going to start tomorrow on a project which will populate two cells in an Excel spreadsheet. Based on the entry of these two cells some calculations are made on another sheet and then the results of those calculations are used to populate two different cells. It's basically a finished opening dimension in a frame. Many times the clients want to tell us what they want the finished opening to be rather than the frame size. What this will involve is to start a loop and using 1/4" or 1" increments, (to be decided later) I will start throwing values into those first two cells. Once the calculations are made and the finished sizes are populated into the other two cells I will make a quick check to see if they are within the range the client is looking for. I realize this will work quickly but I'm curious as to how fast I will be able to loop through this process. I could see the VB.NET program throwing literally hundreds of values into those first two cells as it loops through process until it finds what we're looking for in the other two cells. But I'm wondering if the program will go too fast for the Excel file to keep up with it. Has anyone done anything like this and what have been your experience on how fast the Excel file will be ready for the next iteration through the loop.

Viewing all articles
Browse latest Browse all 27554

Trending Articles