+ Reply to Thread
Results 1 to 3 of 3

Get File Name into String

  1. #1
    Registered User
    Join Date
    06-09-2011
    Location
    PH
    MS-Off Ver
    Excel 2007
    Posts
    54

    Get File Name into String

    Hey all,

    Was wondering if there is a way for me to get the file name of my current active file into a string? I need it for a document I'm making but it may be constantly renamed. This is to avoid constantly changing the line in my VBA code from:

    Please Login or Register  to view this content.
    to this:

    Please Login or Register  to view this content.
    Can this be done?

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Get File Name into String

    Not totally sure what you are after but you might be able to make use of some of the following objects..

    Please Login or Register  to view this content.
    Martin

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Get File Name into String

    Maybe

    Please Login or Register  to view this content.
    Or

    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

+ 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