+ Reply to Thread
Results 1 to 5 of 5

runtime error 1004 Getsaveasfilename of object application failed

  1. #1
    Forum Contributor
    Join Date
    07-02-2013
    Location
    abbots langley
    MS-Off Ver
    Excel 2010
    Posts
    316

    runtime error 1004 Getsaveasfilename of object application failed

    Hi

    i am trying to adapt a code, to create and email a pdf to include the option to select where to save the file. I keep getting a runtime error 1004 Getsaveasfilename of object application failed.


    Please Login or Register  to view this content.
    Any help much appreciated.

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,895

    Re: runtime error 1004 Getsaveasfilename of object application failed

    Try changing fileSaveName line to something like below.
    Please Login or Register  to view this content.
    Also, you shouldn't specify file extension for initialName string (just use Title variable as it's using same string).

  3. #3
    Forum Contributor
    Join Date
    07-02-2013
    Location
    abbots langley
    MS-Off Ver
    Excel 2010
    Posts
    316

    Re: runtime error 1004 Getsaveasfilename of object application failed

    That works perfect thankyou CK76. Is there a way I can adapt the above so that I can see the email before sending in case I need to add anything?

  4. #4
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,895

    Re: runtime error 1004 Getsaveasfilename of object application failed

    Yes. Comment out ".Send" line and add ".Display" below.

  5. #5
    Forum Contributor
    Join Date
    07-02-2013
    Location
    abbots langley
    MS-Off Ver
    Excel 2010
    Posts
    316

    Re: runtime error 1004 Getsaveasfilename of object application failed

    thankyou so much :-)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Runtime Error '1004' Method 'SaveAs' of object'_Workbook Failed
    By Angsome in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-12-2014, 02:58 PM
  2. [SOLVED] Runtime Error 1004; Method 'OLEObjects' of object '_Worksheet' failed
    By Adnamut in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-24-2014, 01:21 AM
  3. [SOLVED] Runtime error 1004: Method 'Range' of object '_Worksheet' failed
    By Phil Payne in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-17-2013, 01:30 AM
  4. [SOLVED] runtime error 1004 method save of object _workbook failed
    By madhatter40 in forum Excel General
    Replies: 1
    Last Post: 06-22-2013, 07:30 AM
  5. [SOLVED] runtime error 1004 method save of object _workbook failed
    By madhatter40 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-20-2013, 03:37 AM
  6. 1004:runtime error method 'range' of object'_Global failed
    By trksbc in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-21-2009, 03:25 AM
  7. runtime error '1004' object '_Global' failed
    By Jim in Spokane in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-02-2005, 08:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1