Thanks.
Also interesting, the above code works on your computer? I just ran it on a new workbook on my computer and I get the same error, so it might not be code related but computer related?
However if I let the VBA code generate the button, and then right click on the button and assign the macro ThisWorkbook.btnS it works.
Bookmarks