+ Reply to Thread
Results 1 to 5 of 5

Run - time error '1004': Unable to get the Sum property of WorksheetFunction class

  1. #1
    Registered User
    Join Date
    03-24-2013
    Location
    Quezon City, Philippines
    MS-Off Ver
    Excel 2010/2013
    Posts
    83

    Run - time error '1004': Unable to get the Sum property of WorksheetFunction class

    Whenever I use backspace in textbox1 to delete the 0 and key in a number, run'time error '1004' appears.
    Also, if I run a debug, the one in Bold and color blue is highlighted.

    Please help.
    Thanks in advance!



    Here's the partial code:

    Please Login or Register  to view this content.
    Last edited by dylanrose; 04-06-2013 at 06:58 AM.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: Run - time error '1004': Unable to get the Sum property of WorksheetFunction class

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code in [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    Try testing textbox for numeric content

    Please Login or Register  to view this content.
    You should probably test all textboxes before using their values.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    03-24-2013
    Location
    Quezon City, Philippines
    MS-Off Ver
    Excel 2010/2013
    Posts
    83

    Re: Run - time error '1004': Unable to get the Sum property of WorksheetFunction class

    So sorry Mr. Andy Pope. I'm done with the editing.

    Wait, I'll try the code. Thank you!

  4. #4
    Registered User
    Join Date
    03-24-2013
    Location
    Quezon City, Philippines
    MS-Off Ver
    Excel 2010/2013
    Posts
    83

    Re: Run - time error '1004': Unable to get the Sum property of WorksheetFunction class

    Mr. Andy Pope: there's an error saying

    'Compile error: End If without block If'

  5. #5
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Run - time error '1004': Unable to get the Sum property of WorksheetFunction class

    Try this.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

+ 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