+ Reply to Thread
Results 1 to 3 of 3

Filter by ref cell Value and copy to new sheet. Compile Error: Sub or Function not Defined

  1. #1
    Registered User
    Join Date
    10-03-2013
    Location
    california
    MS-Off Ver
    Excel 2007
    Posts
    34

    Filter by ref cell Value and copy to new sheet. Compile Error: Sub or Function not Defined

    Greetings!

    I am trying to modify this macro i found at the very informative website of Ron de Bruin.

    It involves filtering the data and copying the filtered data to an existing worksheet.

    The macro works on the spreadsheet i downloaded from Ron's site but for some reason it will not work on mine. It keeps saying "Compile Errror:Sub or Function not Defiined

    Here's my code. I just edited the sheet name and cell value from the orginal to reflect my project sheet.

    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    10-03-2013
    Location
    california
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: Filter by ref cell Value and copy to new sheet. Compile Error: Sub or Function not Def

    Basically, I have two sheets

    One contains the data (Email Raw) and the other is the data dump (Email Ref)

    My goal is to get the data from Email Raw to Email Ref based on the filtered value

  3. #3
    Registered User
    Join Date
    10-03-2013
    Location
    california
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: Filter by ref cell Value and copy to new sheet. Compile Error: Sub or Function not Def

    I was able to solve the problem!

    The problem was I am missing the Function code that makes this macro work. Add this code to a new module or below the macro itself

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Compile error: Sub or function not defined?
    By mdovey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-09-2013, 02:57 PM
  2. [SOLVED] Compile error: Sub or Function not defined.
    By shiva_reshs in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-17-2013, 09:19 AM
  3. [SOLVED] Compile Error: Sub or Function not Defined
    By grazian2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-02-2013, 04:27 PM
  4. [SOLVED] Compile error: sub or function not defined
    By Anita7 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-17-2012, 08:50 PM
  5. compile error: sub or function not defined
    By eaglefana101 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-17-2012, 01:18 AM

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