+ Reply to Thread
Results 1 to 3 of 3

Trying to record a macro that filters columns by cells that contain formulas

  1. #1
    Forum Contributor
    Join Date
    05-17-2017
    Location
    Tallahassee
    MS-Off Ver
    15.32
    Posts
    206

    Trying to record a macro that filters columns by cells that contain formulas

    Thank you for your help in advance. I am trying to create a macro that filters columns on cells that contain formulas. However, I am trying to do it through the record macro method. My idea was to record the macro and use “Find & Select” to select all the cells with formulas and to highlight them yellow. Next, I was going to filter each column separately by color and the resulting dataset would be the cells with formulas. However, this did not work. Do you have any other ideas on what I could record myself doing to obtain the results that I want?

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,493

    Re: Trying to record a macro that filters columns by cells that contain formulas

    If you select a column, then hit F5, click special, then select formulas=>OK the cells with formulas will be selected.

    Try that with your macro recorder and you should end up with a code like this.
    Please Login or Register  to view this content.
    You can then clean up the code to look like this.
    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    10-02-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1,222

    Re: Trying to record a macro that filters columns by cells that contain formulas

    Have you considered just using conditional formatting?

    We dont have a sample to go by so I have no idea the exact criteria you are filtering by. If its just highlight any cell with any formula you can do that with a rule based on a formula with =ISFORMULA in it (depending on your version of Excel). If you need to be more specific than that provide some more detail and/or a sample.

+ 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. Filters of merged cells Macro help please
    By Darkprophecy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-28-2015, 05:53 AM
  2. Replies: 14
    Last Post: 10-07-2013, 04:04 PM
  3. Fix macro to stop formulas to extend beyond record 1980.
    By mcranda in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-26-2013, 12:33 PM
  4. Record changes to pivot table filters
    By Big_Kev in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-05-2013, 10:44 AM
  5. Macro to compare 2 columns cell contents and add 'Yes' flag for record
    By swarren6 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-11-2013, 03:50 PM
  6. [SOLVED] Adding Record to data table + preserve array formulas in specific columns
    By olivierpbeland in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-21-2013, 02:33 PM
  7. creating a macro that filters differences in columns
    By chadder44 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-04-2010, 07:16 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