![]() |
#5
|
|||
|
|||
![]() Code:
Sub Maybe() Dim wb1 As Workbook, wbName As String, j As Long Application.ScreenUpdating = False Set wb1 = ThisWorkbook wbName = wb1.Sheets("Sheet1").Cells(4, 3).Value & " " & wb1.Sheets("Sheet1").Cells(5, 3).Value ActiveWorkbook.SaveAs Filename:=CreateObject("WScript.Shell").Specialfolders("Desktop") & "\" & wbName, _ FileFormat:=xlOpenXMLWorkbookMacroEnabled ActiveWorkbook.Close Application.ScreenUpdating = True End Sub |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
kp2009 | Word VBA | 5 | 08-27-2015 11:45 PM |
Excel connot open file (filename) xlsx | dengeorge6 | Excel | 0 | 12-12-2014 01:36 AM |
Save Filename based on Text Field | madcar86 | Word VBA | 8 | 10-19-2014 12:53 AM |
![]() |
Oliver Beirne | Word VBA | 4 | 10-19-2012 03:33 AM |
![]() |
Knawl | Word | 11 | 10-10-2011 03:00 AM |