+ Reply to Thread
Results 1 to 7 of 7

compile error sub or function not defined excel 2003

  1. #1
    Registered User
    Join Date
    10-13-2011
    Location
    São Paulo, Brazil
    MS-Off Ver
    Excel 2003
    Posts
    10

    compile error sub or function not defined excel 2003

    Ladies and Gentlemen,

    after having searched the forums and applied some of the previously given solutions of similar problems i decided to post my question here. I got a script that gives me the "compile error sub or function not defined". I am using Excel 2003 and i personally suspect it might have something to do with language issues. The excel version i am using is set to Portuguese but I used some German and English in my code.
    Please Login or Register  to view this content.
    I appreciate any answers and help and appologize if this is a ridiculous question but its the first time i am programming something myself.

    Greetings,
    Chris
    Last edited by romperstomper; 10-13-2011 at 09:36 AM. Reason: add code tags

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,329

    Re: compile error sub or function not defined excel 2003

    Where is prcDeleteButton defined?
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Registered User
    Join Date
    10-13-2011
    Location
    São Paulo, Brazil
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: compile error sub or function not defined excel 2003

    Quote Originally Posted by romperstomper View Post
    Where is prcDeleteButton defined?
    actually i did not define this one so far, i used a standard worksheet and added a macro for a button in the worksheet so our managers can simply print out the respective worksheet when needed.

    Thank you for your reply !

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,329

    Re: compile error sub or function not defined excel 2003

    You'll need to either create it or remove the call to it from your Workbook_Open code.

  5. #5
    Registered User
    Join Date
    10-13-2011
    Location
    São Paulo, Brazil
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: compile error sub or function not defined excel 2003

    Sorry for not having continued our approach but we had a few extraordinary occurrences around here that kept me from chasing after my makro.

    Still having deleted the deletebutton has not resulted in the desired stability.
    Actually i am trying to do the following, i have a simple worksheet or lets say 7 in my book in which our store managers will be able to fill in their respective customer orders per day of the week. I added a button that i called "print out" and a macro in order to actually print something out when going for the button. It works but i still get the error when starting up the file and the debugger pops up. Often our managers have minimal to little IT skills and might get confused with unexpected error messages. I just want that dang think to work without any errors.

    Thanks for your help

  6. #6
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,329

    Re: compile error sub or function not defined excel 2003

    If you have a button in the worksheet to do what you want, then you don't need the Workbook_Open code you posted, so just delete it.

  7. #7
    Registered User
    Join Date
    10-13-2011
    Location
    São Paulo, Brazil
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: compile error sub or function not defined excel 2003

    Romperstomper thank you very much! Sweet and simple solution makes me feel like i am a complete moron. Btw is there any kind of decent tutorial that you recommend to get a hang of macros?

    Thank you very much and owing you a pint!

    Chris

+ 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