as you know you can't use Excel VBA code directly in to Blue Prism.
With the Excel sheet in question open and Blue Prism attached to the running instance of Excel, perform thi
Select an Action stage.the select MS Excel VBO in the Business Object drop-down.and select the "Run Macro" in the Action drop down.
From inside this stage you can call the Macro by its given name.