Person specific information

jennyjsheffuk

Board Regular
Joined
Jun 14, 2007
Messages
209
Hello
Can anyone help me please!
I want the information I have obtained via a form to update individual records.
I've created a sub called PersonSearch and a variable "Person" to hold the value from the list box, if found it calls the EnterDetails sub.
The names are in a worksheet called "Records" and the column to look down is AM2

I don't know how to get it to find the person and enter the information for them. The following enters it all at the top.

Dim r As Range, r1 As Range
Set r = Worksheets("Records").Range("am2").CurrentRegion
Set r1 = r.Offset(r.Rows.Count, 1)

r1.Cells(1).Value = txtDate.Value
If optLTAdd.Value = True Then
r1.Cells(3).Value = txtLieuTime.Value
Else
r1.Cells(4).Value = txtLieuTime.Value
 
Last edited:

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

Forum statistics

Threads
1,214,585
Messages
6,120,391
Members
448,957
Latest member
Hat4Life

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