+ Reply to Thread
Results 1 to 6 of 6

Compile Error : Syntax Error

  1. #1
    Registered User
    Join Date
    09-26-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    76

    Compile Error : Syntax Error

    Hey Friends

    following code not working, getting error in highlighted part,

    Please Login or Register  to view this content.
    Please suggest me how to fix this.

    Thanks in advance
    Sagar007

    Thanks in advance
    Sagar
    Arise awake & stop not till d goal reached

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Compile Error : Syntax Error

    Maybe, change too:

    ActiveWorkbook.SaveAs Filename:="E:\Inventory & " - " & Format(Now,"dd-mm-yyyy") & ".xls", FileFormat:= _
    xlOpenXMLWorkbook, CreateBackup:=False

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Compile Error : Syntax Error

    That line should be
    Please Login or Register  to view this content.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  4. #4
    Registered User
    Join Date
    09-26-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    76

    Re: Compile Error : Syntax Error

    Both Code are not working, for further details please see attached workbook
    Attached Files Attached Files

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Compile Error : Syntax Error

    Try this
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    09-26-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    76

    Re: Compile Error : Syntax Error

    Hi Arlette

    Thank you very much, working perfect.

+ 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