Hello team,
I have a simple VBA.txt file with a vba code. After adding one line to it, the “Invoke VBA” activity does not work any more:
The error I’m getting is: Invoke VBA: Cannot run the macro ‘ChangeColumnType’. The macro may not be available in this workbook or all macros may be disabled.
I have spent multiple hours on troubleshooting this but not found any clue on forum. You are my last resort, otherwise I will have to use click activities to do this which is not optimal
Sub ChangeColumnType()
'Sheet on which we have to perform operations
Sheets("Sheet1").Activate
'Changing column format
ActiveSheet.Range("B:B").NumberFormat = "@"
ActiveSheet.Range("L:L").NumberFormat = "@"
End Sub