That basically describes what I have already tried to do, I have gone through all the help files on exporting and tabcmd functions. I was trying to find someone that can assist with looking at the script to tell me what is incorrect or provide an example to try. Unfortunately Tableau does not make it easy to export without using the tabcmd function. I am not a programmer, just a simple report writer.
Thanks for your help.