1. 我在桌面建立有指定名稱的空資料夾, OK
2. 建立文字檔後, 另存新檔且指定名稱的EXCEL檔, OK
3. 這個EXCEL 檔, 我想放進這個空資料夾(或其它指定的資料夾) , 這裡不知道怎麼改........
Sub AddFolder()
On Error Resume Next
MkDir (ThisWorkbook.Path & "/" & Range("I3"))
On Error GoTo 0
Dim wbNew As Workbook, name As String
Set wbNew = Workbooks.Add
ThisWorkbook.Sheets("SI").Copy Before:=wbNew.Sheets(1)
With wbNew.Sheets(1)
.UsedRange.Value = .UsedRange.Value
name = "SI -" & .[L12]
.[P1:Q100].Delete Shift:=xlShiftToLeft
.SaveAs ThisWorkbook.Path & Application.PathSeparator & name