Article ID: 182587
Article Last Modified on 8/10/2007
Sub RenameFile()
Dim sOldPathName As String
sOldPathName = "Mac HD:Desktop Folder:Test Document"
On Error Resume Next
Name sOldPathName As "Mac HD:Desktop Folder:Regular Document"
If err Then MsgBox Err.Description
End Sub
For more information about the Name Statement, click the Office Assistant
while in the Visual Basic Editor, type name statement, click Search, and
then click to view "Name Statement."
176476 OFF: Office Assistant Not Answering Visual Basic Questions
181058 OFF98: How to Run Sample Code from Knowledge Base Articles
163435 VBA: Programming Resources for Visual Basic for Applications
Additional query words: wordcon vb vba vbe
Keywords: kbcode kbdtacode kbhowto kbmacroexample kbprogramming KB182587