Hello,
i have a strange issue with Personal.XLSB where it won't let me create a button from there.
if i use the code below within the File instead of Personal it works every time.
the code i am using is:
ActiveSheet.Buttons.Add(47, 43, 41, 35).Select
Selection.Name = "Test"
Selection.OnAction = "ThisWorkbook.Test_Click"
because the button isn't being created, i get the failure message:
"Run-time error '5':
Invalid procedure or call argument"
any help would be greatly appreciated.
thanks in advance.
i have a strange issue with Personal.XLSB where it won't let me create a button from there.
if i use the code below within the File instead of Personal it works every time.
the code i am using is:
ActiveSheet.Buttons.Add(47, 43, 41, 35).Select
Selection.Name = "Test"
Selection.OnAction = "ThisWorkbook.Test_Click"
because the button isn't being created, i get the failure message:
"Run-time error '5':
Invalid procedure or call argument"
any help would be greatly appreciated.
thanks in advance.