Hi Andy,
I've got all of the above to work nicely on my home PC which runs Excel 2007. However the spreadsheet I'm creating is for work where the company runs Excel 2003. When I run the above code I get error 13 (Type mismatch), and it refers specifically to the following line of code:
Set shpGroup = ActiveSheet.Shapes.Range(Split(Left(strNames, Len(strNames) - 1), ",")).Group
I've looked into it and it appears to be having dificulty running the split function element of the code. I looked in the help file and the Split function appears to be the same in both versions of Excel. Any ideas what could be causing the problem?
I've made a couple of minor changes to the code (below is the code I'm using).
Thanks
J
Bookmarks