+ Reply to Thread
Results 1 to 3 of 3

FileSaveAs gets Complie Error - WHY?!

  1. #1
    Registered User
    Join Date
    08-08-2010
    Location
    Ottawa, Canada
    MS-Off Ver
    Excel 2010
    Posts
    85

    Question FileSaveAs gets Complie Error - WHY?!

    HI! I'm trying to modify an existing code to insert a filename when the macro opens the FileSaveAs dialogue box, but I get a Compile Error:Syntext Error on the red code. I've included the full macro below and highlighted in blue the original code and below in red my code that has the error. .

    I'm sure I've something very simple, like forgotten a comma or bracket or something, but I can't see it!

    Original Code
    Please Login or Register  to view this content.
    My change
    Please Login or Register  to view this content.
    Last edited by trillium; 08-13-2010 at 08:36 AM.

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: FileSaveAs gets Complie Error - WHY?!

    You don't need quotes around the save name, so:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-08-2010
    Location
    Ottawa, Canada
    MS-Off Ver
    Excel 2010
    Posts
    85

    Talking Re: FileSaveAs gets Complie Error - WHY?!

    SWEET! I KNEW It was something like that! I'm pretty new at this and just needed that second set of eyes! THANK YOU!!!!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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