Save multiple files into selected folder using file dialog folder picker

selvendran

New Member
Joined
Aug 17, 2015
Messages
13
Hi all

I need your expertise in modifying/tweaking a little bit in the below mentioned code to make it work in a better way.

For Each
myCell In TheRange

If Trim(myCell) <>
"" Then

Sheets("Cover").Cells(myCell.Row,
66).Copy

Range("M31").Select
Selection.PasteSpecial Paste:=xlPasteValues
Call ComboBox1_Change
Application.StatusBar =
"Processing: " & myCell & " FC Template......."
& "Please Wait !!!"

Calculate
'*******************CREATING
NEW XL WORKSHEET & COPYING DATA**************************

Dim fd As FileDialog
Dim TempPath As String
Dim myFolder As Variant
ExtraSlash = "\"
Set fd =
Application.FileDialog(msoFileDialogFolderPicker)

With fd
.AllowMultiSelect = False
If .Show = -1 Then
For Each myFolder In
.SelectedItems

TempPath = myFolder &
ExtraSlash

ActiveWorkbook.SaveCopyAs
Filename:=TempPath & myCell & ".xlsm"

Next myFolder
End If
End With
Set fd = Nothing
End If
Next myCell

<tbody>
</tbody>
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

Forum statistics

Threads
1,216,058
Messages
6,128,539
Members
449,457
Latest member
ncguzzo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top