Add comments based on certain value with its contents from vlookup result - Excel VBA

CakzPrimz

Board Regular
Joined
Oct 6, 2017
Messages
57
Hi,

I have a list of Disciplines, such as : Civil, Piping, Electrical, etc in Sheets A, from range A1:A8, and I have another Sheets B, which have list of Discipline in columns A and list of Employee's name in columns B and Title in columns C.

Sheets A:
Range A1 value = Civil
Range A2 value = Piping

Sheets B:
Range A2 to A500 = list of Discipline (Civil, Piping, Electrical, etc)
Range B2 to B500 = list of Employee's Name
Range C2 to C500 = list of Employee's Title

How to make a VBA code, so when I double click Range A1 within Sheets A (Civil), then it will add a comment in Range A1 Sheets A, list of everyone who works for Civil Department, based on vlookup on Range A1 value, and the contents of this comments will give me a list of Employee's Name and Employee's Title.

Really appreciate any helps, advices and solutions.

Thanks so much.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

Forum statistics

Threads
1,223,911
Messages
6,175,326
Members
452,635
Latest member
laura12345

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