Hallo Guys,

I have created a new table at runtime and want excecute some code if
the user clicks on a cell. How can I do that?

This doese not work:

Dim oWKS as Worksheet
Set oWKS = ThisWorkbook.Worksheets.Add
oWKS.cells(1,1).onAction = "MyMacro" ' Error