Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retrieve a product filename

Status
Not open for further replies.

sapatak

New member
Joined
Jan 20, 2003
Messages
27
Location
CA
Is there a VB function that can read the filename of a product (without the entire path)
what kind of object is it.

please help...

Sap
 
Hello,
what You have to do is
1) ask the document path and get length of that string
iLength=Len(MyDoc.Path)
2) strip of the path from the full name
sName=Right(MyDoc.FullName,len(MyDoc.FullName)-(iLength+1))

The syntax may not be 100% correct, but You got the idea?

regards TPale
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top