excel visual basic question |
![]() ![]() |
excel visual basic question |
Apr 29 2008, 07:35 PM
Post
#1
|
|
|
Member ![]() ![]() Posts: 24 OS: Windows XP |
Basically, its an optimization problem but for job assignments. there are 13 orders and 13 machines and solver needs to find which machine is optimal for which order. when solver outputs the solution, its in a table format where each column and row must only have one value of 1 and the rest are zeros (the 1 means that order should be used at that machine) . The trouble is that i need to use visual basic to enter the data in sheet2. sheet 2 has a table with all the orders listed and it needs to type in which machine that it should use. I can easily do this by searching the output table and seeing which order and which machine has a corresponding 1 under it and type it in sheet2, but i need visual basic to find the 1's from the output table and type the corresponding machine under each order. Anyone have any input? |
|
|
Apr 29 2008, 10:14 PM
Post
#2
|
|
![]() TA Moderator Posts: 1,281 From: SET HOMEPATH OS: Windows 95/98/2000/XP/Vista |
Hello arf,
Is this homework or work-related? You can try using find: Excel Find Method in Excel VBA. How to Use Find in Excel VBA Macros I don't know much about the setup, is there a row for every order and a column for every machine? |
|
|
![]() ![]() |
Similar Topics
| Topic Title | Replies / Views | Topic Information | |||||
|---|---|---|---|---|---|---|---|
![]() |
0 / 526 | 6th July 2005 - 11:29 PM gee started - last by gee |
|||||
![]() |
2 / 1,064 | 10th July 2005 - 06:21 PM gee started - last by gee |
|||||
![]() |
1 / 397 | 12th June 2006 - 01:27 AM Gamer2bn started - last by Hai Mac |
|||||
![]() |
1 / 377 | 7th March 2007 - 03:04 AM Joeturf started - last by IO-error |
|||||
|
Time is now: 8th January 2009 - 03:14 AM |
| Advertisements do not imply our endorsement of that product or service. The forum is run by volunteers who donate their time and expertise. We make every attempt to ensure that the help and advice posted is accurate and will not cause harm to your computer. However, we do not guarantee that they are accurate and they are to be used at your own risk. |