find record latest one

VBABEGINER

Well-known Member
Joined
Jun 15, 2011
Messages
1,232
Hi All,

I have assign x = TxtProjectID.value (text box)

x value are in another workbook called "Timesheet Data" in Col E, with same directory.

x = numeric data.

I have multiple rows in "Timesheet Data". this x value information may exist multiple of times.

What I'm trying to do...

The moment i will paste x value in TxtProjectID.value (in text box), it will find in "Timesheet Data", Sheet2.

from below to up (for latest row record). The moment it will find latest entry..all the corresponding value's are paste in text boxes (which i will mention)

Can any one please help on this, find and paste code..
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Code:
[TABLE="width: 620"]
<colgroup><col><col><col><col><col></colgroup><tbody>[TR]
[TD]Project ID[/TD]
[TD]Activity Type[/TD]
[TD]Project Name[/TD]
[TD]Task Name[/TD]
[TD]Task ID[/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]New Case[/TD]
[TD]Admin_All Other FF[/TD]
[TD]Reporting[/TD]
[TD]11[/TD]
[/TR]
[TR]
[TD]8899[/TD]
[TD]New Case[/TD]
[TD]Admin_Project[/TD]
[TD]Billing[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]New Case[/TD]
[TD]Admin_All Other FF[/TD]
[TD]Reporting[/TD]
[TD]13[/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]New Case[/TD]
[TD]Admin_All Other FF[/TD]
[TD]Reporting[/TD]
[TD]14[/TD]
[/TR]
</tbody>[/TABLE]
I want to find 123 but latest one..i.e. Task id 14, How do i achieve this in code..
 
Upvote 0

Forum statistics

Threads
1,214,606
Messages
6,120,484
Members
448,967
Latest member
visheshkotha

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top