+ Reply to Thread
Results 1 to 4 of 4

VBA to Delete Specific Rows 100s Files for .csv

  1. #1
    Registered User
    Join Date
    06-23-2016
    Location
    SA, SA
    MS-Off Ver
    MS Office 2007
    Posts
    2

    VBA to Delete Specific Rows 100s Files for .csv

    Good day,

    I'm looking for some guidance as to why a piece of code I have does not function as expected. The code ultimately opens multiple .csv files, then looks for certain date values in Column E and decides whether to delete the row or not. The code to delete the row works fine if I run it as stand alone like below:
    Please Login or Register  to view this content.
    However, when I add it to the code that looks through a certain folder for multiple .csv it does not complete the operation. The code is below:

    Please Login or Register  to view this content.
    Can anyone perhaps explain to me why this does not work?

    Thanks
    Last edited by alansidman; 10-08-2017 at 05:23 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,872

    Re: VBA to Delete Specific Rows 100s Files for .csv

    Code Tags Added
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,872

    Re: VBA to Delete Specific Rows 100s Files for .csv

    crosspost: https://www.mrexcel.com/forum/excel-...csv-files.html

    David. I urge you to read the forum rules you agreed to when you joined this forum. It will save you from future infractions by abiding the few.

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

  4. #4
    Registered User
    Join Date
    06-23-2016
    Location
    SA, SA
    MS-Off Ver
    MS Office 2007
    Posts
    2

    Re: VBA to Delete Specific Rows 100s Files for .csv

    Thanks for the guidance and sorry about the posts not being correct

+ 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. VBA to Delete Specific Columns 100s Files for .csv
    By Tommy1005 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-11-2020, 04:25 PM
  2. Merging specific rows from specific sheets of multiple files
    By Stevecoop in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-05-2016, 03:11 PM
  3. Delete All Rows Below Criteria in Col A / Then Delete Specific Rows in Col E
    By LennyC91 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-15-2016, 08:22 AM
  4. Replies: 2
    Last Post: 02-29-2016, 03:05 PM
  5. Replies: 4
    Last Post: 08-11-2015, 04:47 PM
  6. Delete Rows with specific text in specific column
    By love2waltz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-12-2015, 10:16 AM
  7. Delete old files in a specific folder
    By forfiett in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-26-2014, 02:37 AM

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