is there any way to make data validation doesn't contain empty or duplicates items

Mussala

Board Regular
Joined
Sep 28, 2022
Messages
61
Office Version
  1. 2019
Platform
  1. Windows
Hi guys

I have three data validations in OUTPUT sheet in columns B,C,D , linked with columns B,C,D for INVOICE sheet like this

=INVOICE !$B$2:$B$100,=INVOICE !$C$2:$C$100,=INVOICE !$D$2:$D$100

what I look for when shows any data validation should not show any empty and any duplicates items , also I want populate the items into data validation dynamically without increase the range manually when I need add more items more than row 100 for each column .

thanks
 
It looks like the formula in data validation is the problem. The formula must be a List type, such as "=A1:A6"
Are you sure the data validation in those cell works?
Try a simple formula first, such as "=ATS1:ATS6"
 
Upvote 0

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Are you sure the data validation in those cell works?
yes it works , it links with list in Table not in range .
based on your suggestion I can't change because create the list by code automatically without interfer from me .
 
Upvote 0
yes it works , it links with list in Table not in range .
based on your suggestion I can't change because create the list by code automatically without interfer from me .
Your formula refers to a string not a range.
Sorry, the add-in only works on data validation formula that can be evaluated as a range.
In post #1 you said that the data validation formula is like this:
=INVOICE !$B$2:$B$100
Does the add-in work on the cell with that formula?
 
Upvote 0
In post #1 you said that the data validation formula is like this:
=INVOICE !$B$2:$B$100
Does the add-in work on the cell with that formula?
sorry for that !

open many files and work on another code make me so confused

to come back your suggestion about the code , now it shows the form and works perfectly , but I have question

is there any way to make your form inside the clicked cell to show as in part of the cell instead of move the form in places are not relating of clicked cell ?

I mean should show as in right location in target cell as data validation in each cell .

also if there is form contains combo box I think no need data validation because the user maybe forget double click into cell then the problem still continues.

I know your form depends on data validation is existed, but I hope you find way like hide data validation when select cell as if data validation is not existed from the basic .
 
Last edited:
Upvote 0
is there any way to make your form inside the clicked cell to show as in part of the cell instead of move the form in places are not relating of clicked cell ?
Try this:
  1. Open VBA window (press ALT+F11)
  2. Open VBAProject Search_deList_v2.1.xlam
  3. Open xDAV_1 code window
  4. In "Public Sub GetPointCoordinates(ByVal cellrange As Range, ByRef pointcoordinates As pointcoordinatestype)", comment or remove this line:
VBA Code:
Set cellrange = cellrange.MergeArea.Offset(, 1)

Question:
Does the shortcut Alt+Right works now?
 
Upvote 0
  1. In "Public Sub GetPointCoordinates(ByVal cellrange As Range, ByRef pointcoordinates As pointcoordinatestype)", comment or remove this line:
It doesn't work after delete it . the same case.
Question:
Does the shortcut Alt+Right works now?
no I have to click inside the cell.
 
Upvote 0
Hm..,, wait, before you deleted the line where the userform appear?
It should be at the next cell of the clicked cell. Like this:

search delist next cell.jpg

I double-clicked the cell (with text "back to the jury") then userform appeared at the next cell.
 
Upvote 0
in reality I use data from right to left sheet based on my language , doesn't work for my case.
but if I use left to right based on English then your suggestion works.
and the combo box can't autofit based on clicked cell?
 
Upvote 0
Ok, sorry I'm not familiar with right to left setting, so I can't amend the code to suit.
And I wonder if this right to left setting has something to do with the Alt+Right shortcut, I mean can you try by pressing Alt+Left instead of Alt+Right?
 
Upvote 0
Ok, sorry I'm not familiar with right to left setting, so I can't amend the code to suit.
don't worry
And I wonder if this right to left setting has something to do with the Alt+Right shortcut, I mean can you try by pressing Alt+Left instead of Alt+Right?
my apologies!🙏🙏🙏
I thought when you said Alt+Right . I misunderstood :eek::eek::eek:
Right means right click . but now understood right arrow in keyword.
now it works whether the sheet is right to left or left to right by using Alt+Right
thanks very much for your tool and times .:)
 
Upvote 0

Forum statistics

Threads
1,215,381
Messages
6,124,614
Members
449,175
Latest member
Anniewonder

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