+ Reply to Thread
Results 1 to 2 of 2

Create the File If Not Exist Else Copy the Data to Next Available Row

  1. #1
    Registered User
    Join Date
    06-10-2009
    Location
    United Kingdom
    MS-Off Ver
    Excel 2007, Excel 2003, Excel 2016, Excel 365
    Posts
    93

    Create the File If Not Exist Else Copy the Data to Next Available Row

    Here I am again asking for your help.

    I can understand codes but can't write so I've combined the codes below but can't make it to work that suits my requirement. I've assigned the code to a command button in source workbook (wsCopy) and below are the required process:

    1. Check if the file exist on the specified path
    2. If not, copy the worksheet("Database") from source (wsCopy) to create a new file.
    3. If file exist, open the workbook and copy the data to next available row

    I hope this clarifies everything. Thank you very much in advance.

    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    06-10-2009
    Location
    United Kingdom
    MS-Off Ver
    Excel 2007, Excel 2003, Excel 2016, Excel 365
    Posts
    93

    Re: Create the File If Not Exist Else Copy the Data to Next Available Row

    Appreciate your help on the code above please. I'm getting application-defined or object defined error.

+ 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] Create Text file in excel VBA & add number to Filename if exist
    By sanjuss2 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-15-2022, 12:10 PM
  2. [SOLVED] Check first, If file name Exist then avoid otherwise create a file
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-09-2017, 01:13 PM
  3. Check for Active X control resource file and if it does not exist create it
    By mattvanleuten in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-01-2015, 02:23 AM
  4. open existing file if exist, else create it.
    By simeonmein in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-03-2014, 11:17 AM
  5. [SOLVED] Look for a File and create one if it doesn't exist
    By Titansmasher in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-08-2012, 07:43 PM
  6. Replies: 3
    Last Post: 03-11-2006, 02:50 PM
  7. Replies: 0
    Last Post: 03-10-2006, 05:55 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