[python-win32] Calling Excel function GetSaveAsFilename, parameter ignored [SEC=PERSONAL]

Andrew MacIntyre Andrew.MacIntyre at acma.gov.au
Wed Jul 13 09:50:01 CEST 2011


> From:  Jason Veldicott
> 
> I am wanting to display a file "Save As..." dialog in Excel through Pywin.  I am doing
> this by calling Application.GetSaveAsFilename().  The problem however is that the
> parameter supplied to this function, InitialFilename, seems to be ignored by Excel. 
> Perhaps it's not getting through to Excel.  When VBA was used to call the same
> function, the initial filename displayed correctly.

Some googling turned up http://www.officekb.com/Uwe/Forum.aspx/excel-prog/137292/GetSaveAsFilename-file-name-is-blank
which might be related to what you're seeing.

-------------------------> "These thoughts are mine alone!" <---------
Andrew MacIntyre           Operations Branch
tel:   +61 2 6219 5356     Communications Infrastructure Division
fax:   +61 2 6253 3277     Australian Communications & Media Authority
email: andrew.macintyre at acma.gov.au            http://www.acma.gov.au/


NOTICE: This email message is for the sole use of the intended recipient(s) 
 and may contain confidential and privileged information. Any unauthorized 
 review, use, disclosure or distribution is prohibited. If you are not the 
 intended recipient, please contact the sender by reply email and destroy all 
 copies of the original message.


More information about the python-win32 mailing list