Active Directory with Admin Privs

Trying to update Active Directory and want to know if it is possible to pass Admin Credentials in the vba code to update it.
I have worked in C# and you can do it within the code.