Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Assuming your problem is that you don't know how to rename the files,
how about this? Private Sub cmdRename_Click() Dim sFileName As String, sPath As String, rFileName As String sFileName = ActiveCell.Select sPath = "F:\excel\" rFileName = InputBox("") '''''''''''''''''''''''''''''''''''''''''''''''''' ''''''''''''''''''''''''''''''''''''''''''''''''' 'If new name is entered and that is different from old one. If rFileName < "" And UCASE(rFileName) < UCASE(sFileName) Then Name sPath & sFileName as sPath & rFileName End If '''''''''''''''''''''''''''''''''''''''''''''''''' ''''''''''''''''''''''''''''''''''''''''''''''''' End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro to save file as different filename | Excel Worksheet Functions | |||
Auto save file copy with unique filename | Excel Worksheet Functions | |||
Filename has Url in file-save dialog when saving exported Excel do | Excel Programming | |||
Save file, refer filename to cell and change directory | Excel Programming | |||
Save excel file with filename = cell text | Excel Programming |