+ Reply to Thread
Results 1 to 9 of 9

Macro to skip filtered rows

  1. #1
    Registered User
    Join Date
    02-12-2021
    Location
    South Africa
    MS-Off Ver
    Office 365
    Posts
    5

    Question Macro to skip filtered rows

    Hi,

    Spreadsheet as follows:

    Column A - file name
    Column B - email address
    Colum C - file name (this is pulled from the folder when macro is run)
    Column D - folder path
    Column E - hyperlink created (from the macro)

    Macro below:

    Please Login or Register  to view this content.
    I am trying to see if it is possible to add something to the macro that will skip filtered rows.

    The macro draws the files from the folder and attaches it to the spreadsheet but should a file not be in the folder for one month and highlighted in the spreadsheet, it does not skip that and allocates the wrong file to the information in Column A.

    Any assistance is appreciated.

    Thanks!
    Last edited by davesexcel; 02-12-2021 at 08:30 AM.

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

    Re: Macro to skip filtered rows

    If your selection is filtered cells then
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-12-2021
    Location
    South Africa
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Macro to skip filtered rows

    Hi,

    It does not seem to be working - the files do not show up.

    I am not sure if I am maybe missing something in the existing macro itself which will match the file names in Column A to the folder itself?

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

    Re: Macro to skip filtered rows

    You have indicated you want to skip filtered rows.

    I tested your code, it quickly creates hyperlinks to the files in a selected folder, I am not sure what the last loop is for.

  5. #5
    Registered User
    Join Date
    02-12-2021
    Location
    South Africa
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Macro to skip filtered rows

    The last loop makes the file into a working hyperlink and attaches the file to an email - that is a different macro that I run after I did this combination.

    I am not sure where your code should fit into skip the filtered rows then?

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

    Re: Macro to skip filtered rows

    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  7. #7
    Registered User
    Join Date
    02-12-2021
    Location
    South Africa
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Macro to skip filtered rows

    I have added the attachments - the macros are separate as it would not let me upload the spreadsheet as it was too big.
    There is also a process doc that explains what I am trying to achieve.

    It works but the inly issue I have is, say there are multiple rows of information and some rows are hidden.
    When I run the "combined" macro, it does not pick up that some rows are hidden and thus adds the files in the wrong places.
    Attached Files Attached Files

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

    Re: Macro to skip filtered rows

    Here is your sample back it's only 10 kb. please provide the code in the workbook and a more precise sample.

    You only have one row filled out and it is not filtered. We should not have to open 4 files to figure this out.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    02-12-2021
    Location
    South Africa
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Macro to skip filtered rows

    Updated file
    Attached Files Attached Files

+ 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. Modifying Print Macro to skip blank rows
    By anilpatni1234 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-06-2019, 12:04 PM
  2. [SOLVED] Macro required to skip rows if there is a . Between in the data
    By sparkerk5 in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 05-25-2019, 01:04 AM
  3. I am not able to skip first two rows (only first two) and then run this loop macro
    By krish_mys in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-31-2016, 09:21 AM
  4. How to skip rows when referencing another workbook that doesn't skip rows?
    By Julian2501 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-06-2014, 04:55 PM
  5. [SOLVED] Macro to Skip if filtered values are empty
    By Jiptastic in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-17-2013, 05:32 PM
  6. Macro to Skip Rows between the current value and a selected value, and add a year
    By jll5ff in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-19-2013, 06:11 PM
  7. Macro that fills in cells needs to skip 2 rows
    By westonkw in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-03-2008, 05:36 PM

Tags for this Thread

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