JustAnswer > Programming
Ask A Question|Register|Login|Help
JustAnswer

Programming

Ask a Programming Question, Get an Answer ASAP!

Have your own Programming question?

3 Programmers are Online Now
characters left:
Not a Programming Question?

Related Programming Topics:

  • Fix
  • ,
  • Run
  • ,
  • Set
  • ,
  • Top
  • ,
  • Two
  • ,
  • Back
  • ,
  • Cell
  • ,
  • Code
  • ,
  • Come
  • ,
  • Copy
Bookmark and Share

Question

I have an excel file with 3 work sheets. The sheet called "To Be Ordered" is a listing of possible items to order. I want anything that is to be ordered to be copied automatically to the sheet called "Puchase Order". Anything entered in sheet "To Be Ordered" in column H would copy cells A to I in that row, to an open line on the sheet called Purchase Order. Is that posible?

Submitted: 123 days and 1 hours ago.
Category: Programming
Value: $45
Status: CLOSED
+
Read More

Optional Information

Computer OS: Windows XP
Browser: IE

Already Tried:
what if function

Posted by John D 123 days and 1 hours ago.

Info Request

Hi,

 

That can be done in various ways, i.e. by formulas, by a macro that you can be run on demand, or by using embedded code that detects a change in a certain column or cell then automatically fires a macro that will copy your data to the other sheets. Any preferences?

 

Also I would need the file in order to give you a specific answer or custom solution. Is it ok to send the file?

 

 

123 days and 1 hours ago.

Reply

I don't have any preferences as long as it works. I would be more than happy to send the file, Just tell me where.

Kimber

Posted by John D 123 days and 1 hours ago.

Info Request

Ok, here is how to upload the file:

 

1. go to http://fileqube.com
2. click ‘Browse' then select your file
3. click ‘agree and upload' button (when it finishes uploading a new page will be displayed)
4. click on the link next to 'Download link' and copy that link, then come back to this page and paste the download link in your reply.

 

(Note: If you want the file to be later removed from the server please make sure to save the 'Delete link' that you will get after uploading the file).

123 days and 1 hours ago.

Reply

http://www.fileqube.com/file/ivcfJgomk206681

 

file has been uploaded

Posted by John D 123 days and 1 hours ago.

Info Request

Kimber,

 

I got the file. Thanks.

 

Will start working on it later today and should complete the work by this evening PST. If you need it earlier please let me know.

 

In the meantime if I need any clarification I will be posting a message or two.

 

 

123 days and 1 hours ago.

Reply

No problem, I will look for your emails or posts.

Posted by John D 122 days and 20 hours ago.

Answer

Ok, here we go.

 

FILE

 

The operation is performed by a macro which is triggered by clicking the button "Copy Items to Purchase Order" located at the top of the sheet "To Be Ordered".

 

When the button is clicked, the macro will first clear any previous items from the Purchase Order, then it goes through the items in the sheet "To Be Ordered" starting from row 4 down to the last row of data in that sheet. It looks for the items whose Quantity are not zero. It then copies the appropriate cells of each of these items into its proper field in the Purchase Order. (If you want the macro to copy ALL the items listed in that sheet and not just the ones which have quantities let me know and we change that).

 

Go ahead and test it by typing different quantities in the Quantity fields of the "To Be Ordered" and run the macro to see if it works the way you want it.

 

Hope this is ok. Let me know if you want to have any modification or if you have any question. If all is ok,thank you for clicking Accept.

 



Edited by John D on 7/23/2009 at 1:29 PM

122 days and 3 hours ago.

Reply

Thank you, everything seems to be working great. However the Purchase Order is not generating a new number in the PO #, cell H4. Someone had set it up so that every time it is opened it generates a sequential number starting with 0001. The date is working but not the PO#. Can you fix this?

Posted by John D 122 days and 2 hours ago.

Info Request

Glad to hear that.

 

Would that be cell H4 in the Purchase Order sheet, because the code that is in the original program places the sequence PO # in cell G4. Could you please verify and let me know.

 

 

122 days and 2 hours ago.

Reply

Yes, that's it. I figured how to fix it, so you do not need to work on this. thank you so much. I am going to accept so that you get paid. I would like to use you again in the future. Is there a way that I can specify you?

Edited by XXXXXXXXXXXXXX on 7/23/2009 at 6:22 PM

Accepted Answer

That's ok, here is the modified file in case you still need it

 

FILE

 

You can specify me by writing "For John D" in the subject of your next question.

 

By the way you have not yet clicked the green Accept and that is the only way I get paid for my work. Thanks.

 

Picture
Expert: John D
Pos. Feedback: 99.7 %
Accepts: 
Answered: 7/23/2009

BS Degree in Engineering

20 years experience in Excel programming and various major applications.

+
Read More

Related Programming Questions

  • How do I write a macro that saves a file with a variable nam...
  • how do i activate a stolen visa gift card
  • i want to look up every other sunday on excel...how do I do
  • Help with simple array process
  • I have a Sony Vaio Laptop model PCG-7Y2L operating on Window...
  • new to access....how do i replace in a form the latest date
  • i need help using blueJ. i have an assignment creeating a ma...
  • I have a worksheet with days of the week for each month goin...



Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.
Question List | Become an Expert | Terms of Service | Security & Privacy | About Us
© 2003-2009 JustAnswer Corp.