+ Reply to Thread
Results 1 to 2 of 2

When exiting a document and "open a form" button macro automatically turn off autofilter

  1. #1
    Registered User
    Join Date
    11-15-2013
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    41

    When exiting a document and "open a form" button macro automatically turn off autofilter

    Hi all! So i have two problems -

    Firstly, I have a code that when you press save on a document, my spreadsheet turns off the autofilter before saving. However I have noticed that when people press Exit then when prompted select save - the autofilter is NOT turned off. I would like the autofilter to turn off no matter how i save the document.

    Here is the code:
    Please Login or Register  to view this content.
    The second problem is that on my workbook there is a button that you press called the caller button which opens up a form to populate my spreadsheet. The issue that I am having is that I would like when you press this button the filter turns OFF, then the form appears. I tried to adapt my above code to do this, but it doesn't seem to be working:

    Please Login or Register  to view this content.
    Thanks very much!

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: When exiting a document and "open a form" button macro automatically turn off autofilt

    Hi cath1509,

    Try the following (tested and working using Excel 2003).

    Problem 1.
    In the ThisWorkbook Module:
    Please Login or Register  to view this content.
    Problem 2.
    Add the following line after Worksheets("Sheet1").Activate:
    Please Login or Register  to view this content.
    Lewis
    Last edited by LJMetzger; 07-25-2014 at 09:34 AM.

+ 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] Automatically filter pivot table and turn off "show details"
    By babbeleme1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-27-2013, 01:08 PM
  2. [SOLVED] (updating inventory using user form) : Assign macro to "Çheck Availibility" command button
    By pyol17 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-08-2012, 06:50 AM
  3. [SOLVED] How do I turn off "document sent to printer" message?
    By Judy Y in forum Excel General
    Replies: 7
    Last Post: 04-01-2006, 09:50 PM
  4. Replies: 0
    Last Post: 01-04-2006, 06:55 PM
  5. set up a command button or macro for open file to "save as"
    By Mo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-22-2005, 07:19 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