+ Reply to Thread
Results 1 to 3 of 3

Check if folder and file exist

  1. #1
    Forum Contributor
    Join Date
    03-14-2012
    Location
    location
    MS-Off Ver
    Excel 2007
    Posts
    170

    Check if folder and file exist

    Hi,

    I try to copy/paste data from active.workbook to a new file (Book2), it works very well, but I want to check if the folder and file are there, I found a code for checking them but I don't know how to do if they are not....

    Please Login or Register  to view this content.
    Thank you very much for your help.
    blue

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Check if folder and file exist

    How to do what if the folder/file don't exist?
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    03-14-2012
    Location
    location
    MS-Off Ver
    Excel 2007
    Posts
    170

    Re: Check if folder and file exist

    Hi Norie,
    Thank you for your reply.
    I've already created the folder and the file, the checking is just in case someone deletes "by mistake" the folder or the file, if the folder and the file are where I created everything is ok, if the folder or the file is/are deleted I'd like to be created....I just want to prevent this (last week one of my colleague deleted the file and the code did not work), is possible to be created if are deleted?

+ 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. File already exist in folder validation
    By vijanand1279 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-08-2011, 12:48 AM
  2. Save a file to a folder, create folder if it doesn't exist
    By mcinnes01 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-01-2010, 09:12 AM
  3. Check if folder exist
    By CobraLAD in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-17-2009, 05:00 AM
  4. Replies: 6
    Last Post: 08-11-2006, 03:41 PM
  5. Check if a folder exist
    By loopoo in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-07-2005, 08:10 AM

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