+ Reply to Thread
Results 1 to 5 of 5

Extract File names...

  1. #1
    Registered User
    Join Date
    07-27-2011
    Location
    singapore
    MS-Off Ver
    Excel 2007
    Posts
    32

    Extract File names...

    Hi All,

    I have a userform with two textbox.....
    The value will be entered based on the file location which the user choose.

    Suppose, for example it can be "
    Please Login or Register  to view this content.
    If this is choosen as the input file Directory,i need to create another directory in the same location like this

    Please Login or Register  to view this content.
    so the logic is i must extract all the text before the second '\' from the end and then create a directory named Output_directory,then the same filename as Input file name,

    I need to achieve this using VBA code...
    Can someone help me with this.

    Regards
    Ashesh

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Extract File names...

    Try this

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-27-2011
    Location
    singapore
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: Extract File names...

    Hi Phillips,

    Am getting an object required error ar

    Please Login or Register  to view this content.

  4. #4
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Extract File names...

    Maybe your textbox is not called TextBox1.

  5. #5
    Registered User
    Join Date
    07-27-2011
    Location
    singapore
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: Extract File names...

    Hi Phillips,

    It worked fine......thanx a lot for ur help.

+ 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