'Create the Excel Object
Set xlApp = Server.CreateObject("Excel.Application"
'Getting the Template from server
Set xlWb = xlApp.Workbooks.Add (Server.MapPath ("/folderPath/Template1.xlt")
'Create new worksheets but after 3 I need other
'worksheets with the template from the server
if wSheet > 3 then
xlApp.Workbooks.Add
end if
I need to add more worksheets based on Template1.xlt (which has 3 worksheets, thus when wSheet greater than 3 I need to add extra worksheets. I NEED EXTRA WORKSHEETS BASED ON THE Template.xlt. How do I do this?
Set xlApp = Server.CreateObject("Excel.Application"
'Getting the Template from server
Set xlWb = xlApp.Workbooks.Add (Server.MapPath ("/folderPath/Template1.xlt")
'Create new worksheets but after 3 I need other
'worksheets with the template from the server
if wSheet > 3 then
xlApp.Workbooks.Add
end if
I need to add more worksheets based on Template1.xlt (which has 3 worksheets, thus when wSheet greater than 3 I need to add extra worksheets. I NEED EXTRA WORKSHEETS BASED ON THE Template.xlt. How do I do this?