bonjour et merci pour votre réponse !
par contre, je ne suis pas certain de comprendre comment l'insérer dans mon fichier (je suis aprenti chimiste en VBA.. je n'y connais pas grand chose) ..
j'ai attaché une copie écran de "thisworkbook" afin que vous puissiez voir si j'ei correctement intégré votre code
ci dessous la macro qui me sert a sauvegarder, ou et comment dois je intégrer le BSave et BClose ?
encore merci pour votre aide !
Sub Savefinal()
On Error GoTo Err_Savefinal
'Save in \Desktop\Pricing\
ActiveSheet.Unprotect Password:="126"
Cells.Find(What:="Created on:", after:=ActiveCell, LookIn:=xlFormulas, LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False, SearchFormat:=False).Activate
ActiveCell.Offset(0, 1).Select
ActiveCell.FormulaR1C1 = "=NOW()"
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False
Cells.Find(What:="First and last Name", after:=ActiveCell, LookIn:=xlFormulas, LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False, SearchFormat:=False).Activate
ActiveCell.Offset(0, 1).Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False
Cells.Find(What:="UGDN", after:=ActiveCell, LookIn:=xlFormulas, LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False, SearchFormat:=False).Activate
ActiveCell.Offset(0, 1).Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False
ActiveSheet.Protect Password:="126."
Application.Dialogs(xlDialogSaveAs).Show Sheet1.Range("G2")
'Error Subs
Exit_Savefinal:
Exit Sub
Err_Savefinal:
MsgBox Err.Description
Resume Exit_Savefinal