+ Reply to Thread
Results 1 to 4 of 4

Formula trouble in VBA

  1. #1
    Registered User
    Join Date
    08-04-2009
    Location
    Lismore, Australia
    MS-Off Ver
    Excel 2007
    Posts
    13

    Formula trouble in VBA

    Hi guys,

    I'm getting a compile error before I even get a chance to use it. I'm sure it's simple but it's got me stumped.

    Please Login or Register  to view this content.
    I've underlined and made bold, the area where the error occurs.

    The error is:

    Compile error:
    Expected: end of statement


    Thanks for your time,

    Ciaron
    Last edited by Snurry; 08-09-2009 at 04:37 AM.

  2. #2
    Registered User
    Join Date
    08-04-2009
    Location
    Lismore, Australia
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Formula trouble in VBA

    There you go, sorry I was completely unaware.
    Could you help me with a solution?

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Formula trouble in VBA

    Wherever you use quotations within a string literally in VBA you must double up, eg:

    Please Login or Register  to view this content.
    As you can see in the syntax generally speaking " denotes either commencement / end of a string in VBA (hence the initial error)

  4. #4
    Registered User
    Join Date
    08-04-2009
    Location
    Lismore, Australia
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Formula trouble in VBA

    Thanks a bunch, I'll definitely remember that one.

+ 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