Hi All,
I am using Excel 2007. I am trying to prepare new a Excel sheet which will replace a conventional white board usage in my company.Btw I'm new to Excel VBA. Ours is a car rental company we need to track where our vehicles are daily at the end of the day.So this sheet will be updated with a user form at the start of the day for the transit happened on previous day.
What I need:
I have a work book with three sheets. Sheet1 will be displayed when excel is opened. Its the main sheet which will look exactly like the White board with customer name in the 1 st Column(A2 to A20) and car numbers in the range B2 to Q20. It will look something like this.
Sheet1
[TABLE="class: outer_border, width: 300, align: left"]
<tbody>[TR]
[TD]Customer Name[/TD]
[TD]Car numbers[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Customer 1[/TD]
[TD]1234[/TD]
[TD]3214[/TD]
[TD]4661[/TD]
[TD]6548[/TD]
[/TR]
[TR]
[TD]Customer 2[/TD]
[TD]5216[/TD]
[TD]6546[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Customer 3[/TD]
[TD]4561[/TD]
[TD]8462[/TD]
[TD][/TD]
[TD]6464[/TD]
[/TR]
[TR]
[TD]Customer 4[/TD]
[TD]2465[/TD]
[TD][/TD]
[TD]1642[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Sheet 2[TABLE="class: outer_border, width: 300, align: center"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Driver[/TD]
[TD]Customer[/TD]
[TD]Car numbers[/TD]
[TD]TIme[/TD]
[/TR]
[TR]
[TD]8/8/14[/TD]
[TD]ABC[/TD]
[TD]Customer1[/TD]
[TD]3214[/TD]
[TD]9:00[/TD]
[/TR]
[TR]
[TD]9/8/14[/TD]
[TD]ABG[/TD]
[TD]Customer2[/TD]
[TD]2451[/TD]
[TD]10:00[/TD]
[/TR]
[TR]
[TD]8/8/14[/TD]
[TD]GFD[/TD]
[TD]Customer1[/TD]
[TD]5663[/TD]
[TD]5:00[/TD]
[/TR]
[TR]
[TD]9/8/14[/TD]
[TD]GHF[/TD]
[TD]Customer3[/TD]
[TD]4561[/TD]
[TD]6:00[/TD]
[/TR]
</tbody>[/TABLE]
Sheet 3 is look up list. It has values which forms the named ranges and is used get values in sheet2.
The data in sheet 2 is obtained with a user form with many combo box and text boxes using Excel VBA.
My question is how extract data from sheet 2 Like what I have in Sheet 1 using EXcel VBA code. I want it to be sorted for individual days with customer in Column 1 and the vehicles arranged accordingly based on the date.
Thanks for your help.
Ganesh
I am using Excel 2007. I am trying to prepare new a Excel sheet which will replace a conventional white board usage in my company.Btw I'm new to Excel VBA. Ours is a car rental company we need to track where our vehicles are daily at the end of the day.So this sheet will be updated with a user form at the start of the day for the transit happened on previous day.
What I need:
I have a work book with three sheets. Sheet1 will be displayed when excel is opened. Its the main sheet which will look exactly like the White board with customer name in the 1 st Column(A2 to A20) and car numbers in the range B2 to Q20. It will look something like this.
Sheet1
[TABLE="class: outer_border, width: 300, align: left"]
<tbody>[TR]
[TD]Customer Name[/TD]
[TD]Car numbers[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Customer 1[/TD]
[TD]1234[/TD]
[TD]3214[/TD]
[TD]4661[/TD]
[TD]6548[/TD]
[/TR]
[TR]
[TD]Customer 2[/TD]
[TD]5216[/TD]
[TD]6546[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Customer 3[/TD]
[TD]4561[/TD]
[TD]8462[/TD]
[TD][/TD]
[TD]6464[/TD]
[/TR]
[TR]
[TD]Customer 4[/TD]
[TD]2465[/TD]
[TD][/TD]
[TD]1642[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Sheet 2[TABLE="class: outer_border, width: 300, align: center"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Driver[/TD]
[TD]Customer[/TD]
[TD]Car numbers[/TD]
[TD]TIme[/TD]
[/TR]
[TR]
[TD]8/8/14[/TD]
[TD]ABC[/TD]
[TD]Customer1[/TD]
[TD]3214[/TD]
[TD]9:00[/TD]
[/TR]
[TR]
[TD]9/8/14[/TD]
[TD]ABG[/TD]
[TD]Customer2[/TD]
[TD]2451[/TD]
[TD]10:00[/TD]
[/TR]
[TR]
[TD]8/8/14[/TD]
[TD]GFD[/TD]
[TD]Customer1[/TD]
[TD]5663[/TD]
[TD]5:00[/TD]
[/TR]
[TR]
[TD]9/8/14[/TD]
[TD]GHF[/TD]
[TD]Customer3[/TD]
[TD]4561[/TD]
[TD]6:00[/TD]
[/TR]
</tbody>[/TABLE]
Sheet 3 is look up list. It has values which forms the named ranges and is used get values in sheet2.
The data in sheet 2 is obtained with a user form with many combo box and text boxes using Excel VBA.
My question is how extract data from sheet 2 Like what I have in Sheet 1 using EXcel VBA code. I want it to be sorted for individual days with customer in Column 1 and the vehicles arranged accordingly based on the date.
Thanks for your help.
Ganesh