I have been using below code which create the copy of same workbook in the same folder with same name "Copy".
What i want is I need that code in a way, Where i will run the code it will ask me to select a folder after selecting the folder which have multiple workbooks and also on their sub folder. It should run and create copies. that way my huge time will saved.
Any help will be much appreciated.
What i want is I need that code in a way, Where i will run the code it will ask me to select a folder after selecting the folder which have multiple workbooks and also on their sub folder. It should run and create copies. that way my huge time will saved.
Any help will be much appreciated.
VBA Code:
Dim DISTNAME As String
DISTNAME = Left(ActiveWorkbook.Name, Len(ActiveWorkbook.Name) - 4) & "Copy" & ".xlsx"
DISTNAME = ActiveWorkbook.Path & Application.PathSeparator & DISTNAME
Sheets.Select
Cells.Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone
ActiveWorkbook.SaveAs DISTNAME