A
awong
I posted this on June 9th. But I haven't received any response yet. Could
anyone help?
Thanks a lot.
Original message below.
---------------------------------------------------------------------------
Hi all,
In KB article Q210684, it mentions a work around. (I attached it at the
bottom of this email).
I followed the work around suggestion and created the follow code (I only
extract part of the whole procedure) but it doesn't work neither.
Dim objExcel As Excel.Application
Set objExcel = GetObject(, "Excel.Application")
Dim wkbInvoice As Excel.Workbook
Set wkbInvoice = objExcel.Workbooks.Add(strTemplateLocation)
Dim intSheetCount as Integer
intSheetCount = 200
For IntI = 1 To intSheetCount
Dim intCount As Integer
intCount = wkbInvoice.Worksheets.Count
wkbInvoice.Worksheets("TemplateDetailSheet").Copy
Before:=wkbInvoice.Worksheets (intCount)
Next IntI
I can also repro this problem on EXCEL 2003.
Could someone help? Thanks a lot.
Abel
anyone help?
Thanks a lot.
Original message below.
---------------------------------------------------------------------------
Hi all,
In KB article Q210684, it mentions a work around. (I attached it at the
bottom of this email).
I followed the work around suggestion and created the follow code (I only
extract part of the whole procedure) but it doesn't work neither.
Dim objExcel As Excel.Application
Set objExcel = GetObject(, "Excel.Application")
Dim wkbInvoice As Excel.Workbook
Set wkbInvoice = objExcel.Workbooks.Add(strTemplateLocation)
Dim intSheetCount as Integer
intSheetCount = 200
For IntI = 1 To intSheetCount
Dim intCount As Integer
intCount = wkbInvoice.Worksheets.Count
wkbInvoice.Worksheets("TemplateDetailSheet").Copy
Before:=wkbInvoice.Worksheets (intCount)
Next IntI
I can also repro this problem on EXCEL 2003.
Could someone help? Thanks a lot.
Abel