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. #14
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    Re: Using FileExist to check name before saving file

    please post a desensitized workbook. there are issues with fileexist and variables, but i need to see what your seeing.

    actually do this:

    Dim answer As VbMsgBoxResult
    If FileExist("\\WDMYCLOUD\Euromatic\Invoices\" & Range("g3").Value & ".pdf") Then
        answer = MsgBox(Range("g3").Value & "already exists" & vbNewLine & "Overwrite?", vbYesNo, "WARNING")
    If answer = vbNo Then Exit Sub
    End If
    Last edited by dmcgov; 07-16-2019 at 07:12 AM.

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