Conditional selecting and pasting in excel -
I am quite new to VBA coding, so I used to hope that you can help me with the following problem.
I am looking for the best way to organize the following:
With a set of data, I get various types of documents (a definitive document type of all) with my information (Such as the customer's name, address, amount, VAT, ...) from this file, I would like to select some doctor type (eg DG, EG, SA, ...) which holds concessions every time and with those items Copy copies of those related rows Land.
For example
Customer Name Date Dosage Discount Doc Type
25739484 Burt 01/01/2010 100 15% 2% EG
< P> Now my question is:- What is the easiest way to say which type of doctors I have chosen and pasted (this file is for reusing the company Is it the users to put them into different cells?
- Depending on the doctor types choosing users, how can the macros select those rows and copy them to a new file?
Thanks a lot! !!
Allen
Please note that this is not complete and I Smile I hope this helps you get started.
In the form of a slow DT, the worksheet as the string DIS has been retarded in the form of slow CNT as the Boolean decimal spaces as long as the user has been doc type DT = Ask for the input box ("Enter the Doctor Type") 'Get the active sheet = thisWorkbook.ActiveSheet if DT & lt; & Gt; "" Then do not loop over the rows while CTT = CNT + 1 "Doctor type column for doctor type if ws.Cells (cnt, 6) = dt then 'keep copy of the line here' keep track Exit the "empty" rows, after 1000 emptys, loop if ws.Cells (cnt, 6) = "" empty number = empty count 1 if empty number = 1000 is done = true loop end if
Comments
Post a Comment