+ Reply to Thread
Results 1 to 5 of 5

writing in formulas - getting errors

  1. #1
    Registered User
    Join Date
    05-25-2011
    Location
    Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    52

    writing in formulas - getting errors

    Hi all,
    I am trying to set certain cells to contain formulas, but I am getting errors. The code is:
    Please Login or Register  to view this content.
    As far as I can tell I have 2 problems.
    1) after typing in the 4th line of code it highlights the word RUSH and says "expected end of statement". I have no idea why this one is wrong but the others are ok. The text is the only thing that is different, but I don't know why that changes anything...
    2) when I comment out that line and try to run it, they are all wrong and I get both "run time error 1004 - application defined or object defined error" and "run time error 438 - object doesn't support this method or property" depending on which line I look at. Can anyone explain what I'm doing wrong? Thanks
    Last edited by gryffin13; 07-23-2012 at 01:06 PM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,726

    Re: writing in formulas - getting errors

    If you want to include quotes in a formula then you have to double-up. Try it like this:

    Please Login or Register  to view this content.
    Also, you have spelt formula incorrectly on each line.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    05-25-2011
    Location
    Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    52

    Re: writing in formulas - getting errors

    Wow, I feel like an idiot right now. I can't believe I didn't see the typo. I appreciate the help, but I still get a 1004 error with the typo fixed. Any thoughts?

    ---------- Post added at 11:22 AM ---------- Previous post was at 11:20 AM ----------

    nevermind. I had to add the double quotes that you suggested to the first line as well. Thank you so much.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,726

    Re: writing in formulas - getting errors

    Ah, I was just about to ask if you had made the changes to the quotes.

    Pete

  5. #5
    Registered User
    Join Date
    05-25-2011
    Location
    Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    52

    Re: writing in formulas - getting errors

    Yup. Thanks. I'm an idiot

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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