Vlookup edit button

MoOsEBoT88

New Member
Joined
Sep 13, 2011
Messages
15
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have a Ref No for each record that is inputted into the system, which is inserted into sheets "search" and one with the Employees name "xxx" e.g. james.

What I want to do is have a edit sheet that I could put in ref number in cell B3, it would show the current record in cells B5 -> B16. (Done this already).
In Cell B5 in the Employee Name.

If I put any new details in C5 > C16 to replace it for what corresponding to in the B Column, on sheets "search" and "employees name" (Cell B5)

If a cell is blank in C, then don't replace anything.

E.g. Total Cost is currently £50 and shown in B16, I put in £100 in C16 and the record is updated in both "search" and "james" sheet.

Then if you press a command button to update the new values.

Hope you can help

MoOsEBoT88
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Hi,

You can use an event macro to update your list, in this case, probably use the worksheet_change event, first set your target range, and your update range, then use a statement like:

If Not Intersect(Target, Range("update")) Is Nothing Then
'update statement here
end if

Whenever the range changes, it will update your list.

You may find it helpful if you look up worksheet_change event in the help file.


JH
 
Upvote 0

Forum statistics

Threads
1,224,592
Messages
6,179,777
Members
452,942
Latest member
VijayNewtoExcel

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