+ Reply to Thread
Results 1 to 3 of 3

store on the Filename from the full path

  1. #1
    Registered User
    Join Date
    07-23-2008
    Location
    Selangor
    Posts
    18

    store on the Filename from the full path

    hai,

    i have no idea how to store only the filename in excel. for example, user browse a file in D:\images\image1.jpeg. but it'll store only image1.jpeg in the excel.

    Please if anyone knows code to make it possible...Thank You

    Please Login or Register  to view this content.
    Last edited by collamack; 08-29-2008 at 12:22 AM. Reason: want to add browse code

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Use this Function by John Walkenbach
    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello collamack,

    If you want to separate the file name and its extension from the fully qualified path use the Dir statement.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

+ 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. macro to print full path name in footer
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-22-2008, 04:50 PM
  2. Full File Path in footer in ALL workbooks
    By SBIProjEngineer in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-12-2008, 10:40 AM
  3. Opening a file with CommandButton without specifying full path
    By Glio in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-18-2007, 02:33 PM
  4. Determining relative file path macro
    By ctmurray in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-18-2007, 12:25 AM
  5. TextToColumns fails in macro
    By olyram in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-17-2007, 04:48 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