Question: how to add a hyperlink in excel vba?
Answer: Open an excel workbook. Press Alt+F11 to open VBA Editor. Insert New Module. Copy the above code and Paste in the code window. Press F5 to execute it. You can see a new hyperlink is added at A5.