Question: how to open vba format?
Answer: Press Alt+F11 to open VBA Editor. Insert a new module from Insert menu. Copy the above code and Paste in the code window. Save the file as macro enabled workbook.