+ Reply to Thread
Results 1 to 3 of 3

VBA to check if a .jpg exists in "ThisWorkbook.Path"

  1. #1
    Forum Contributor
    Join Date
    07-22-2009
    Location
    Minneapolis, MN
    MS-Off Ver
    2016
    Posts
    220

    VBA to check if a .jpg exists in "ThisWorkbook.Path"

    Hi,
    I'm trying to write an if statement that says:

    "If there is one (or more) .jpg in the folder where the spreadsheet is located, delete all of them. If not, continue with the macro."

    Here is the code I'm playing with, and it works, except for the IF statement.

    Please Login or Register  to view this content.
    Any ideas on how to do a simple IF statement?

    Thanks!

  2. #2
    Forum Contributor
    Join Date
    07-22-2009
    Location
    Minneapolis, MN
    MS-Off Ver
    2016
    Posts
    220

    Re: VBA to check if a .jpg exists in "ThisWorkbook.Path"

    Nevermind, I figured it out...

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    07-22-2009
    Location
    Minneapolis, MN
    MS-Off Ver
    2016
    Posts
    220

    Re: VBA to check if a .jpg exists in "ThisWorkbook.Path"

    Random double post. Sorry

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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