+ Reply to Thread
Results 1 to 3 of 3

Sub Macro works until I CALL it!

  1. #1
    Registered User
    Join Date
    01-15-2017
    Location
    Arizona
    MS-Off Ver
    2016
    Posts
    9

    Sub Macro works until I CALL it!

    Hi All,

    Total perturbed at this and don't even know what to shows specifically.

    I have a MAIN macro that calls a SUB macro.

    When I run the MAIN everything is fine. Then I run the SUB separately from the MAIN everything is fine.

    However, when I CALL the SUB from the MAIN, I get "Run-Time error '1004': AutoFilter method of Range class failed"

    Any Ideas?

    Thanks!

    Ed

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,371

    Re: Sub Macro works until I CALL it!

    Nothing to go on. Post the code and sample workbook.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    01-15-2017
    Location
    Arizona
    MS-Off Ver
    2016
    Posts
    9

    Re: Sub Macro works until I CALL it!

    Thanks TMS! Of course, as soon as I post, I figure it out!

    Thanks!

+ 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. Problem with recording a macro with long formula - works in Excel but not in macro
    By tonybeo2 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-28-2015, 11:25 AM
  2. Outlook New_Mail Event Macro to Call Excel Macro
    By christopheralan88 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-29-2015, 06:28 PM
  3. Replies: 2
    Last Post: 11-02-2014, 01:31 AM
  4. Replies: 2
    Last Post: 08-13-2014, 06:39 PM
  5. Replies: 1
    Last Post: 08-13-2014, 05:46 PM
  6. Calling macro 10 times, add header list to macro call only once
    By capson in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-05-2013, 09:42 AM
  7. [SOLVED] Code works great...UNTIL i call it from another sheet- Why?
    By Ppessina in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-27-2013, 03:52 PM

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