+ Reply to Thread
Results 1 to 4 of 4

run time error 75 = LoadPicture(ThisWorkbook.Path & "\" runtime

  1. #1
    Registered User
    Join Date
    09-06-2016
    Location
    UK
    MS-Off Ver
    2016
    Posts
    69

    run time error 75 = LoadPicture(ThisWorkbook.Path & "\" runtime

    Hi All,

    A working form that I put together is displaying a Run Time Error 75, which is pointing to the file path of the images: The code is:


    Please Login or Register  to view this content.
    The images of the employees and the Workbook are within the same folder.

    The names being referenced where written in non English characters originally, but for some reason the Excel 2016 version I'm using has gargled up the employee name characters within the VBA code..

    Can someone help?

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow

    Hi !

    Check first the filepath with the VBA Dir function : if the file exists, this function returns its name, if not the string is empty …

  3. #3
    Registered User
    Join Date
    09-06-2016
    Location
    UK
    MS-Off Ver
    2016
    Posts
    69

    Re: run time error 75 = LoadPicture(ThisWorkbook.Path & "\" runtime

    Quote Originally Posted by Marc L View Post
    Hi !

    Check first the filepath with the VBA Dir function : if the file exists, this function returns its name, if not the string is empty …
    Hi Marc,

    I've just done a google search but there are many bits of code floating around. Could you post a snippet of code for me to run?

  4. #4
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow

    As all the necessary is yet in the VBA help …

    Anyway a sample with the string variable F for the filepath : If Dir(F) > "" Then Image2.Picture = LoadPicture(F)

+ 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] "ActiveWorkbook.Path" fails - triggers "Compile Error Object required"
    By Ochimus in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-15-2018, 02:58 PM
  2. [SOLVED] Fixing an error where "Thisworkbook" is duplicated
    By scottiex in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-03-2017, 09:20 PM
  3. [SOLVED] Frequently Used Macro now Giving a" Runtime Error '1004 Application-Object Defined Error"
    By rjw524 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-02-2015, 02:39 PM
  4. VBA to check if a .jpg exists in "ThisWorkbook.Path"
    By Rerock in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-30-2013, 04:42 PM
  5. Excel 2010 (Run-time error '13' type mismatch) "Debug" and "Continue" Grayed out.
    By Jeronimo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-18-2012, 06:42 PM
  6. Can't get .presentations.Open ThisWorkbook.Path & "\Pres.ppt" to work
    By gcservi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-08-2012, 09:59 AM
  7. Excel 2003 "Compile error in hidden module: ThisWorkbook"
    By JeffBrown in forum Excel General
    Replies: 1
    Last Post: 11-05-2007, 04:02 PM

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