Duplicate post here: How to write a macro for command button

Which was answered w/o the courtesy of an acknowledgement.

Please DO NOT duplicate posts, it is not necesary.