You can pass a dimension value or variable into the a cell which is displayed as HTML.. However you will have to handle the multi value issue that will come along with it and make it a single string before using to display as HTML..
See the example that I created for this ... I created a variable and defined as
="<marquee direction=right
onmouseover=this.stop();onmouseout=this.start();>" + First( [Project]) +"</marquee></html>"
Attached scree shows value A in the bottom right cell shown as HTML which is passed by the variabel [project]