Hi Dave,
Thanks for the link. I posted the same question on another forum and had someone give me the same link, so I have already looked at it.
I tried the example available from it and it worked fine in the xls file supplied. But when I copied the code to the PERSONAL.XLS sheet, it gave me an error stating that the EVENTCLASS is a user-defined type that hasn't been defined. So I changed it to Class1 and it then worked. Here is the change I made:
I changed the line:
to
Thanks for your code snippet. A little different to the one in the example, but works the same.
Thanks,
Nap
Bookmarks