Off-Topic: Counting File Path Length

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello All

I have a drive with numerous folders. I want to count the total character
length of each path to the document.

Y:/drivename/folder/subfolder/document_name.doc (= 47 characters)

Is there a function in windows that will allow a count of all the paths?

Thanks to all who respond.
H
 
Each path? There should only be one path to the current document and you can
count its length with a macro

Dim strPath As String
Dim iLength As Integer
strPath = ActiveDocument.FullName
iLength = Len(strPath)
MsgBox iLength

http://www.gmayor.com/installing_macro.htm
--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
Back
Top