+ Reply to Thread
Results 1 to 2 of 2

Error calling a procedure not in a module

  1. #1
    Valued Forum Contributor
    Join Date
    11-20-2003
    MS-Off Ver
    2010, 2016
    Posts
    1,174

    Error calling a procedure not in a module

    I am trying to call a procedure that is not located in a module but the procedure is located in sheet3. I am not sure how to call the procedure. I did try moving the procedure code to the module but then it would not work (it does work if I run the code on it's own but just can't call it). I am getting a "sub not defined" error.

    I haven't included all the code to this post as it is way too long. I can attach a copy of an example spreadsheet if needed. Thanks.
    Last edited by maacmaac; 02-14-2009 at 11:07 PM.

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983

    Re: Error calling a procedure not in a module

    Change book, sheet & macro names to suit

    Please Login or Register  to view this content.
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

+ 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