Hello!<br>I&#39;ve worked with pywin32 and up to now inspecting the Excel macro editor and translating commands worked fine, but now I cannot manage to add a sheet at the correct position in Excel.<br><br>My test program is<br>
<br>from win32com.client import Dispatch<br><br>app=Dispatch(&quot;Excel.Application&quot;)<br>app.Workbooks.Add()<br>app.ActiveWorkbook.Sheets.Add(After=app.ActiveWorkbook.Sheets(3))<br><br>Which adds the sheet at the incorrect position. Is there a trick? How come Excel gets confused?<br>
<br>Bernd<br>