Path: csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.kamp.net!newsfeed.kamp.net!fu-berlin.de!uni-berlin.de!not-for-mail From: Michiel Overtoom Newsgroups: comp.lang.python Subject: Re: write data in Excel using python Date: Mon, 16 Nov 2015 19:20:59 +0100 Lines: 21 Message-ID: References: <3267f6a3-a047-4abf-80bf-8fdba3659223@googlegroups.com> Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de qLoOC5DbGlpQX3PX0IeADQlSqS5TlbV8QBpTXfdGmCYQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.023 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'escape': 0.07; 'subject:using': 0.09; 'subject:python': 0.14; 'backslashes': 0.16; 'from:addr:xs4all.nl': 0.16; 'received:194.109': 0.16; 'received:194.109.24': 0.16; 'received:194.109.24.22': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'received:xs4all.nl': 0.16; 'wrote:': 0.16; 'cc:2**0': 0.20; 'file.': 0.22; 'cc:no real name:2**0': 0.22; 'cc:addr:gmail.com': 0.24; 'header:In-Reply-To:1': 0.24; "doesn't": 0.26; 'error': 0.27; 'raw': 0.27; 'skip:( 20': 0.28; 'strings,': 0.29; 'to:name :python-list': 0.30; 'nov': 0.35; 'skip:e 40': 0.35; 'to:addr :python-list': 0.36; 'subject:: ': 0.37; 'charset:us-ascii': 0.37; 'hi,': 0.38; 'skip:e 20': 0.39; 'to:addr:python.org': 0.40; 'some': 0.40; 'forget': 0.60; 'save': 0.60; 'header:Message-Id:1': 0.61; 'greetings,': 0.61; 'received:194': 0.61; 'email addr:gmail.com': 0.62; 'received:nl': 0.72; 'subject:write': 0.84 In-Reply-To: <3267f6a3-a047-4abf-80bf-8fdba3659223@googlegroups.com> X-Mailer: Apple Mail (2.2104) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:98900 Hi, > On 16 Nov 2015, at 18:14, syedmwaliullah@gmail.com wrote: > For some reason it doesn't save the file. Did you get an error message? > excel.activeWorkbook.SaveAs ("c:\TurnData.xlsx") When you use backslashes in strings, don't forget to escape them: > excel.activeWorkbook.SaveAs("c:\\TurnData.xlsx") or use raw strings: > excel.activeWorkbook.SaveAs(r"c:\TurnData.xlsx") Greetings,