Hi All
I came across this discussion thread in 4/5 forum about inability to use After := and Before := while trying to copy excel sheets from one work book to another.
The LS code cannot be saved with Before : and after : in the statements.
I managed to find a workaround after some trial and error
We can use the following syntax
- to copy before use
xlSheet1.Copy xlWorkbook2.Sheets(1)
- to Copy after certain sheet use
xlSheet2.Copy Null,xlWorkbook2.Sheets(i)
And the great thing is it works !!!
Regards
Siddharth