+ Reply to Thread
Results 1 to 3 of 3

Length of a picture’s path

  1. #1
    Forum Contributor CobraLAD's Avatar
    Join Date
    07-23-2007
    Location
    Boksburg, South Africa
    MS-Off Ver
    Office 2019
    Posts
    346

    Length of a picture’s path

    Hi All

    I am using a listbox to list all the pictures in a folder. If I click on any one, it shows the picture in an image control. When the length of the file’s path is 127 and over it give an error “Path/File access error”. Any files in the same folder with a shorter length display correctly. All the attributes of the files is the same. If I make the filename shorter, it shows, but I do not want to make the length shorter.
    Regards
    LAD

  2. #2
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Length of a picture’s path

    Have you tried putting the path of the container folder in a cell, and then using a reference to that cell & the filename for the link?

    For instance, put in cell A1: C:\{Path to the folder containing the pictures}

    Then in cell A2: =HYPERLINK(A1&"NameOfFile.jpg")

    Don't know if that will ultimately work, but hey, maybe it's worth a shot? ¯\_(ツ)_/¯

    - Moo

  3. #3
    Forum Contributor CobraLAD's Avatar
    Join Date
    07-23-2007
    Location
    Boksburg, South Africa
    MS-Off Ver
    Office 2019
    Posts
    346

    Re: Length of a picture’s path

    Hi Moo the Dog

    Thank you and it works from the cell, using my PC's default image viewer. My viewer is on a userform with a listbox and image control. It does not really matter how long the filename is or how long die folder structure is. As soon as the total length is 127 or more, I get this error. I have attached my file with folder and images. This works from C:\Temp

    A solution will really be appreciated. I use this for my music database to display the image once I click on the CD name.
    Attached Files Attached Files

+ 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. Maximum length of File plus path name for excel workbooks
    By Hari Prasadh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-02-2014, 06:53 AM
  2. Creating macro to insert a picture by including specific picture name & path
    By NissaFrenchRamsteyn in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-09-2012, 05:40 AM
  3. [SOLVED] macro: insert picture based on workbook location, not picture root path.
    By NicksDad in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-03-2012, 07:47 AM
  4. Find filename, path, document size, filename length and path length?
    By Laneyboggs in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-30-2010, 08:01 PM
  5. [SOLVED] Picture Hyperlink Path
    By tom in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-20-2006, 07:10 PM
  6. Picture Hyerlink Path
    By tom in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-19-2006, 01:25 PM
  7. limitation in the path + filename length
    By Tal in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-08-2005, 08:05 AM
  8. Find Folder Path + file Name Length and Insert into Spreadsheet
    By Steve Roberts in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-26-2005, 01:01 PM

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