Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: David L.   on Oct 30 In MS Office Category.

  
Question Answered By: Cheryl Murphy   on Oct 30

What you are looking for must be something like this

Dim strFile As String
Dim d
Set d = CreateObject("Scripting.FileSystemObject")
strFile = "C:\File.xls"

MsgBox d.getfilename(strFile)

This is just code written for displaying the file  name when a user input based
path and filename are provided. i trust you can fill in the details for doing
what you needed to do.

Share: 

 

This Question has 2 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on To capture File name Or get search suggestion and latest updates.


Tagged: