Hi,
I am new for this forum, i want to know the Data validation in excel using macros.
(1st method I know selecting Column A & B --DATA -->Remove Duplicates option-- will give me unique records)
but i want to know how this can be achieve using macros...
I attached the file which contains (originally 14900 records. But in this file only few records are given because i should know the functionality flow)
Details of the file:
flavour sheet -- flavour_id is the unique entity (primary key)
season sheet -- season_id is the unique entity (primary key)
price sheet -- flavour_id,season_id (both column A & B makes unique)
after running macro
1st it has to check whether flavour _id is there in flavour sheet
2nd it has to check whether season _id is there in season sheet
then in Price sheet it has to check for unique with 2 columns(i.e by making concatenate of Column A &B to obtain unique records)
i should obtain an Output like
unique_records -- new sheet
duplicates -records in a new sheet..
Please guide me how to resolve this data validation in Excel itself before importing data into an Database table( Sql server 2008 R2).
So that Data has to Validated before saving/closing the Excel file.
Please guide me how to resolve this using macro..
Thank you.
Bookmarks