+ Reply to Thread
Results 1 to 4 of 4

VB Code to exit sub if No files

  1. #1
    Forum Contributor
    Join Date
    01-31-2012
    Location
    Georgia
    MS-Off Ver
    Excel 2010
    Posts
    193

    VB Code to exit sub if No files

    Hello:

    I need VB Code to exit the sub if there is no files in say C:\Test Folder\

    Please let me know if you have any questions.
    Thanks.

    Riz

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: VB Code to exit sub if No files

    Please Login or Register  to view this content.

    Please Login or Register  to view this content.
    Last edited by mehmetcik; 11-19-2021 at 12:50 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,377

    Re: VB Code to exit sub if No files

    Another one


    Please Login or Register  to view this content.

  4. #4
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: VB Code to exit sub if No files

    Hello :

    Thanks a lot

    R

+ 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] Macro loops through files but I am prompted with Continue/Exit Links on each file open
    By kyle4570 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-08-2021, 02:40 PM
  2. Identify code invoked on cell exit / enter - Finde Invoked Code on Cell Exit
    By vhache in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-18-2017, 05:19 PM
  3. Execute code on exit
    By Flipflash in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-21-2014, 05:40 PM
  4. Trim code to exit code if cell is empty
    By excellenthelp in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-23-2013, 12:08 PM
  5. [SOLVED] Compare two folder files - whether they exit or not and if exit then copy to another foler
    By sthiru in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-10-2012, 12:08 AM
  6. Write text files, run another program, delete txt files upon alt-tab / exit..
    By niels007 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-05-2011, 10:05 AM
  7. asks to save files on exit that haven't been changed
    By rentex in forum Excel General
    Replies: 1
    Last Post: 03-03-2008, 03:55 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