Mrrrr's Forum (VIEW ONLY)
Un forum care ofera solutii pentru unele probleme legate in general de PC. Pe langa solutii, aici puteti gasi si alte lucruri interesante // A forum that offers solutions to some PC related issues. Besides these, here you can find more interesting stuff.
|
Nou pe simpatie: geogeorgiana17 Profile
 | Femeie 25 ani Arad cauta Barbat 26 - 57 ani |
|
|
Mrrrr's Forum (VIEW ONLY)ReguliInregistrareLoginPozeNu sunteti logat. Lista Forumurilor Pe Tematici
|
| #1 |
|
|
Source: https://www.youtube.com/watch?v=V-TBTZvdDkU
The code below opens a Save As dialog to save the active workbook to a specified folder and with a specified name.
Sub SaveAsDialog()
'On Error Resume Next
With Application.FileDialog(msoFileDialogSaveAs) .Title = "Please choose a location and file name to save" .ButtonName = "Save invoice" .InitialFileName = "D:\Documents\Invoices\" & Range("C5").Value If .Show = 0 Then MsgBox "The file did not save.", vbCritical Exit Sub End If Application.DisplayAlerts = False .Execute Application.DisplayAlerts = True End With
End Sub |
_______________________________________

|
|
| |
|