Hello specialists,
I have a sheet called "Data", and there from row 4 and along, I have several collunms with data, like "Main Responsible" in AO, "Country" in AK and "SBU" in AL;
I am also have another sheet called "AuthUsers", where I've created the below matriz;
soo, I am looking for a VBA code, which everytime a person open the file, filter automatically these collumns according to the matriz below;
1 - In collumn "Country", filter two options if the matriz hace a comma;
2 - if blank, no filter;
3- if the name is not on collumns "User", no filter needed;
I usually use Application.UserName to have this feature, but I do not know if another way could be better;
could you help me on that ?
E.G. Sheet("AuthUsers")
I have a sheet called "Data", and there from row 4 and along, I have several collunms with data, like "Main Responsible" in AO, "Country" in AK and "SBU" in AL;
I am also have another sheet called "AuthUsers", where I've created the below matriz;
soo, I am looking for a VBA code, which everytime a person open the file, filter automatically these collumns according to the matriz below;
1 - In collumn "Country", filter two options if the matriz hace a comma;
2 - if blank, no filter;
3- if the name is not on collumns "User", no filter needed;
I usually use Application.UserName to have this feature, but I do not know if another way could be better;
could you help me on that ?
E.G. Sheet("AuthUsers")
User | Main Responsible | Country | SBU |
Eloize Teixeira | Logistics | Brazil, Chile | |
Leonardo Contin | Customer Service | Brazil | |
Mariana Machado | Supply Chain | Brazil | ACC |
Application.UserName | Data(AO:AO) | Data(AK:AK) | Data(AL:AL) |