moved variable initialization to worksheet creation method
moved global variable "theRow" in table parameters