+ Reply to Thread
Results 1 to 3 of 3

Check a Range for file name existing and if does exit and if not call another macro

  1. #1
    Forum Contributor
    Join Date
    10-02-2013
    Location
    Houston, TX
    MS-Off Ver
    office 365
    Posts
    638

    Check a Range for file name existing and if does exit and if not call another macro

    I have code that creates a excel sheet and saves it to a FilePath and name it:
    Please Login or Register  to view this content.
    I need to search for that Filename on a sheet (Survey Email) Range CY30:CY43 If the file exists then exit sub if not call ShowFolderContents

    Any Ideas

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

    Re: Check a Range for file name existing and if does exit and if not call another macro

    Just a guess (this code needs to be combined with your code, the fname has to be specified)

    Please Login or Register  to view this content.
    Last edited by JEC.; 02-26-2022 at 01:02 PM.

  3. #3
    Forum Contributor
    Join Date
    10-02-2013
    Location
    Houston, TX
    MS-Off Ver
    office 365
    Posts
    638

    Re: Check a Range for file name existing and if does exit and if not call another macro

    I like how if the file is not there it added it to the range but when that happens I need to call another (Call ShowFolderContents)

    If the file already is there I do not need to call the macro.

    The reason for calling another macro is there are check boxes on the right and the left of the range that have to be selected if they want to include that file in other macros.
    Once it is there the file gets overwritten many times a day so no need to recheck it would have already been done the first time.

    it does not call the macro as of now when the file is not present

+ 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. directory file check existing file
    By COURTTROOPER in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-04-2017, 07:52 PM
  2. [SOLVED] VB code to check if file exit before opening excel file.
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-24-2017, 06:17 PM
  3. Macro to check value, open file, copy value, loop through range.
    By Ctomo in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-14-2016, 01:37 AM
  4. [SOLVED] Check if file exists and if not call second macro not working
    By Sc0tt1e in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-18-2016, 11:22 AM
  5. [SOLVED] Adding IF function to an existing formula (replace call with 0% if range is blank)
    By jholiday78 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-25-2015, 12:12 PM
  6. [Ask] Import Text file And Call reference path file with Value Range.
    By dha_indra in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-29-2012, 11:09 PM
  7. [SOLVED] Check Box to call Macro
    By John in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-30-2005, 04:05 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