We are building a new experience for our SmartBear Community.
This site is now read-only. You can still browse and search as usual. Learn More
This site is now read-only. You can still browse and search as usual. Learn More
Hi Sudhakar,
The following code works for me:
sub Test1
sWritePath="e:\Book1.xlsx"
Set oXL = CreateObject("Excel.Application")
Set oPCSExpWB= oXL.Workbooks.Open(sWritePath)
Call oPCSExpWB.Worksheets.Add (, oPCSExpWB.Sheets(oPCSExpWB.Sheets.Count))
oPCSExpWB.Save
oXL.Quit
end sub
Hi Sudhakar,
The following code works for me:
sub Test1
sWritePath="e:\Book1.xlsx"
Set oXL = CreateObject("Excel.Application")
Set oPCSExpWB= oXL.Workbooks.Open(sWritePath)
Call oPCSExpWB.Worksheets.Add (, oPCSExpWB.Sheets(oPCSExpWB.Sheets.Count))
oPCSExpWB.Save
oXL.Quit
end sub
Hi:
This code works. Appreciate it
Thanks,
Sudhakar
Thats pretty much identical to what it says on the Stack post I linked to ....