I have a macro in Personal.xlsb called Public Sub Get_Name(shName As String)
When I use below sub to call Get_Name from Personal.xlsb, I get an error at the Application.Run "Personal.xlsb!Get_Name(shName)"
If I remove the variable from Get_Name macro and use Application.Run "Personal.xlsb!Get_Name", it runs ok. Any help on how to get it to work with the variable?
Thanks in advance for the help
When I use below sub to call Get_Name from Personal.xlsb, I get an error at the Application.Run "Personal.xlsb!Get_Name(shName)"
Code:
Public Sub Set_Name()
Dim shName As String
shName = ActiveSheet.Name
[B] Application.Run "Personal.xlsb!Get_Name(shName)"[/B]
End Sub
If I remove the variable from Get_Name macro and use Application.Run "Personal.xlsb!Get_Name", it runs ok. Any help on how to get it to work with the variable?
Thanks in advance for the help