Results 1 to 18 of 18

Using FileExist to check name before saving file

Threaded View

pvking Using FileExist to check name... 07-11-2019, 07:11 AM
PaulSP8 Re: How to look up a filename... 07-11-2019, 07:40 AM
dmcgov Re: How to look up a filename... 07-11-2019, 08:20 AM
pvking Re: How to look up a filename... 07-15-2019, 07:12 AM
AliGW Re: How to look up a filename... 07-15-2019, 07:22 AM
dmcgov Re: How to look up a filename... 07-15-2019, 07:28 AM
pvking Re: How to look up a filename... 07-16-2019, 05:50 AM
RobVerheyden Re: How to look up a filename... 07-15-2019, 08:46 AM
pvking Re: How to look up a filename... 07-16-2019, 05:43 AM
AliGW Re: Using FileExist to check... 07-16-2019, 06:13 AM
pvking Re: Using FileExist to check... 07-16-2019, 06:16 AM
AliGW Re: Using FileExist to check... 07-16-2019, 06:18 AM
pvking Re: Using FileExist to check... 07-16-2019, 06:20 AM
dmcgov Re: Using FileExist to check... 07-16-2019, 07:05 AM
bakerman2 Re: Using FileExist to check... 07-16-2019, 07:16 AM
pvking Re: Using FileExist to check... 07-16-2019, 08:45 AM
dmcgov Re: Using FileExist to check... 07-16-2019, 08:55 AM
pvking Re: How to look up a filename... 07-16-2019, 06:02 AM
  1. #1
    Registered User
    Join Date
    07-08-2019
    Location
    London, England
    MS-Off Ver
    Office 2013
    Posts
    12

    Post Using FileExist to check name before saving file

    We use a very sophisticated Excel Spreadsheet to generate Order Confirmations, Invoicing and Delivery Notes. It is full of Macros so everything is automated and it takes out the human error but the only thing we can't control is saving the file as the wrong number so looking for a workround.

    Typically we save files as:

    'OC6027.pdf', 'OC6028.pdf', 'OC6029.pdf'... or 'IN6027.pdf', 'IN6028.pdf', 'IN6029.pdf'...

    but nothing stopping the user accidentally putting 'OC6020' in the first spreadsheet as the next sequential number and then the current macros will copy across the error to the rest of the paperwork and just overwrite an existing file.

    Is there a way to look into a folder (we only use 1 folder on the entire network) to check the last sequential file name and return it's value +1?

    The only other alternative would possibly be to use If FileExist in the current Macro before saving

    Can anybody give any guidelines?
    Last edited by pvking; 07-16-2019 at 06:11 AM. Reason: Making title more relevant

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 02-03-2019, 04:22 PM
  2. [SOLVED] Return Sequential Numbers Based on Unique Values
    By HangMan in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 11-06-2015, 08:13 PM
  3. Formula to return filename in folder based on partial filename
    By Rerock in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-26-2014, 12:28 PM
  4. Replies: 10
    Last Post: 10-30-2013, 07:29 PM
  5. find and return sequential numbers
    By twisty in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-27-2013, 10:43 AM
  6. can excel return sequential numbers in an IF statement?
    By aldermju in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-28-2008, 04:16 AM
  7. ActiveWorkbook.SaveAs FileName;= 'sequential
    By ufo_pilot in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-19-2006, 06:40 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