Pascal_Wyss
New Member
- Joined
- Dec 1, 2017
- Messages
- 10
Hello Everyone,
As a standard opening remark i want to say that I am an absolute VBA newcomer and have very little idea of coding. That sad, it is a pretty big task for mi that I have in hand. So I am most grateful of any and all help given!!!
My problem is as follows:
In Sheet1 I have a Table containing Date of the patient visit (Todays Date), patient name, treatment and pricing among other data. So basically, every patient arriving gets a new row.
I need to create a button (macro) that is able to identify the range of patients that visited today and copy specific cells of all the rows containing todays date in sheet1.
For example: From row 221 to row 275 are patients with todays date, from these patients I need to copy content of column A,B,D,E,H,I and paste the values in sheet2 in the first free row. But the catch is that the columns are not in the same sequence. So content from column A goes in to B and B in to H etc.
I hope that my description is understandable.
As it would be difficult to attach an example as it is a live workbook containing confidential data.
I thank you all in advanced for your efforts.
With best regards
Pascal
As a standard opening remark i want to say that I am an absolute VBA newcomer and have very little idea of coding. That sad, it is a pretty big task for mi that I have in hand. So I am most grateful of any and all help given!!!
My problem is as follows:
In Sheet1 I have a Table containing Date of the patient visit (Todays Date), patient name, treatment and pricing among other data. So basically, every patient arriving gets a new row.
I need to create a button (macro) that is able to identify the range of patients that visited today and copy specific cells of all the rows containing todays date in sheet1.
For example: From row 221 to row 275 are patients with todays date, from these patients I need to copy content of column A,B,D,E,H,I and paste the values in sheet2 in the first free row. But the catch is that the columns are not in the same sequence. So content from column A goes in to B and B in to H etc.
I hope that my description is understandable.
As it would be difficult to attach an example as it is a live workbook containing confidential data.
I thank you all in advanced for your efforts.
With best regards
Pascal