I really need your help please...In Excel, I have Sheet1 (as a BOOK), Sheet2 (as a PEN) and Sheet3 (as a Payment). When we open this file, it will show the pop up first which contain as follow: Select type: BOOK or PEN, then enter the code number..For instance, if I choose BOOK, then it will fill all information from another SHEET (Sheet1 / Book) such as Code, Description and Price in the Sheet3 (Payment)....Has anyone knows how to do that please?
To make it clear, I put an attachment for this.
I really appreciate for your helps...thanks
Clara
Last edited by clara; May 4th, 2006 at 04:11 AM.
Reason: need more explanation
Just to make sure I understand you correctly. When you open your workbook you want a userform to pop-up. From this userform you want to choose either PEN or BOOK and then enter a code (some sort of registration number?) and when executed what should it do?
a) Find a match for the code in Sheet BOOK, and then copy it to Sheet PAYMENT
or b) Find a match for the code in Sheet PAYMENT, and then copy it to Sheet BOOK?
For this to work there is some things you shold be aware of - in your payment sheet, I take it that you have a header - this should be placed in row 2 (row 1 should be empty). I'm assuming that your code is in column A (this should be formatted as text). Also my for...next statement is limited to 100 rows, just correct this if necessary...
I take it that you know basic VBA (kind like me), so then you should be able to fit it to meet your needs...