VBA to alter activecell data validation entries.

danbates

Active Member
Joined
Oct 8, 2017
Messages
377
Office Version
  1. 2016
Platform
  1. Windows
Hi,

I have a palletiser cleaning sign off sheet and I would like to alter my activecell data validation list depending on future entries.

Picture 1 shows a small overview of my sheet.

A VBA code finds the date and shift when I open the file, so column C is the activecell.

Column A has the dates
Column B has the shifts
Column C has my data validation list in and that consists of AZERA,G,H,J,K,L,M,N,P.

At the moment I only have 1 sign off per shift.

I already have a code that creates another sign off below (see pic 2) so what I would like if possible is not to be able to sign off the same palletiser on the same shift.

e.g. if I was to sign off palletiser H first, when I insert another sign off then palletiser H is missing from the new data validation list and so on but when the shift changes then I would like all the 9 palletisers to show again.

Any help would be appreciated.

Thanks

Dan
 

Attachments

  • 1.JPG
    1.JPG
    37.4 KB · Views: 8
  • 2.JPG
    2.JPG
    46.9 KB · Views: 8

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Forum statistics

Threads
1,215,593
Messages
6,125,716
Members
449,254
Latest member
Eva146

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