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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change word document name in access 1

Status
Not open for further replies.

Domino2

Technical User
Jun 8, 2008
475
GB
I saw this somewhere but as usual cannot find it when I need it. I have a litbox filled with word document names Using scripting file I get this:

For Each fil2 In fol2.files
If fil2.Type = "Microsoft Word Document" Then
Me.DocsList.AddItem fil2.Name
End If
Next

I want to be able to select a name in the list and change it.

Thanks
 
Are you talking about renaming it in the List or renaming the physical file itself?
 
Thanks, renaming the file itself.
 
You could simply use the following:

Name strOldFilename As strNewFilename

Where each string is the full path to the file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top